diff options
Diffstat (limited to 'node_modules/core-js/library/modules/es7.object.enumerable-entries.js')
-rw-r--r-- | node_modules/core-js/library/modules/es7.object.enumerable-entries.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/core-js/library/modules/es7.object.enumerable-entries.js b/node_modules/core-js/library/modules/es7.object.enumerable-entries.js new file mode 100644 index 000000000..5daa803b1 --- /dev/null +++ b/node_modules/core-js/library/modules/es7.object.enumerable-entries.js @@ -0,0 +1,12 @@ +// https://github.com/leobalter/object-enumerables +var $export = require('./_export') + , toObject = require('./_to-object'); + +$export($export.S, 'Object', { + enumerableEntries: function enumerableEntries(O){ + var T = toObject(O) + , properties = []; + for(var key in T)properties.push([key, T[key]]); + return properties; + } +});
\ No newline at end of file |