wallet-core/node_modules/core-js/modules/$.own-keys.js
2017-05-03 15:35:00 +02:00

9 lines
378 B
JavaScript

// 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;
};