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

14 lines
385 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
// all enumerable object keys, includes symbols
var $ = require('./$');
module.exports = function(it){
var keys = $.getKeys(it)
, getSymbols = $.getSymbols;
if(getSymbols){
var symbols = getSymbols(it)
, isEnum = $.isEnum
, i = 0
, key;
while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);
}
return keys;
};