Sha256: f89435613ee1f641d6fb417aa69a462b35916047bbcc962f2ce7dba667f26ac6

Contents?: true

Size: 662 Bytes

Versions: 314

Compression:

Stored size: 662 Bytes

Contents

// https://github.com/tc39/proposal-object-getownpropertydescriptors
var $export        = require('./_export')
  , ownKeys        = require('./_own-keys')
  , toIObject      = require('./_to-iobject')
  , gOPD           = require('./_object-gopd')
  , createProperty = require('./_create-property');

$export($export.S, 'Object', {
  getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object){
    var O       = toIObject(object)
      , getDesc = gOPD.f
      , keys    = ownKeys(O)
      , result  = {}
      , i       = 0
      , key, D;
    while(keys.length > i)createProperty(result, key = keys[i++], getDesc(O, key));
    return result;
  }
});

Version data entries

314 entries across 6 versions & 1 rubygems

Version Path
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es2015-template-literals/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es2015-typeof-symbol/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-code-frame/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-code-frame/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-core/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-generator/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-call-delegate/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-define-map/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-function-name/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-function-name/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-hoist-variables/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-optimise-call-expression/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-regex/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-regex/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-replace-supers/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-replace-supers/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helpers/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-messages/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-external-helpers/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es3-member-expression-literals/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js