diff options
Diffstat (limited to 'node_modules/core-js/modules/_object-to-array.js')
-rw-r--r-- | node_modules/core-js/modules/_object-to-array.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/_object-to-array.js b/node_modules/core-js/modules/_object-to-array.js new file mode 100644 index 000000000..b6fdf05d7 --- /dev/null +++ b/node_modules/core-js/modules/_object-to-array.js @@ -0,0 +1,16 @@ +var getKeys = require('./_object-keys') + , toIObject = require('./_to-iobject') + , isEnum = require('./_object-pie').f; +module.exports = function(isEntries){ + return function(it){ + var O = toIObject(it) + , keys = getKeys(O) + , length = keys.length + , i = 0 + , result = [] + , key; + while(length > i)if(isEnum.call(O, key = keys[i++])){ + result.push(isEntries ? [key, O[key]] : O[key]); + } return result; + }; +};
\ No newline at end of file |