wallet-core/node_modules/core-js/modules/$.own-keys.js

9 lines
378 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
// all object keys, includes non-enumerable and symbols
var $ = require('./$')
, anObject = require('./$.an-object')
, Reflect = require('./$.global').Reflect;
module.exports = Reflect && Reflect.ownKeys || function ownKeys(it){
var keys = $.getNames(anObject(it))
, getSymbols = $.getSymbols;
return getSymbols ? keys.concat(getSymbols(it)) : keys;
};