All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.core-js.modules._object-to-array.js Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
var getKeys = require('./_object-keys');
var toIObject = require('./_to-iobject');
var isEnum = require('./_object-pie').f;
module.exports = function (isEntries) {
  return function (it) {
    var O = toIObject(it);
    var keys = getKeys(O);
    var length = keys.length;
    var i = 0;
    var result = [];
    var key;
    while (length > i) if (isEnum.call(O, key = keys[i++])) {
      result.push(isEntries ? [key, O[key]] : O[key]);
    } return result;
  };
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy