Sha256: 0e26e4616c4bfe3dc75dd9b4dcacc15342fe5cead307cf7b449e4382f6dcac8a

Contents?: true

Size: 720 Bytes

Versions: 34

Compression:

Stored size: 720 Bytes

Contents

// https://gist.github.com/WebReflection/9353781
var $          = require('./$')
  , $export    = require('./$.export')
  , ownKeys    = require('./$.own-keys')
  , toIObject  = require('./$.to-iobject')
  , createDesc = require('./$.property-desc');

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

Version data entries

34 entries across 17 versions & 7 rubygems

Version Path
ilog-0.4.1 node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
ilog-0.4.1 node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
ilog-0.4.0 node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
ilog-0.4.0 node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
ilog-0.3.3 node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
ilog-0.3.3 node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/fbjs/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/fbjs/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
locomotivecms-3.4.0 app/javascript/node_modules/fbjs/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
locomotivecms-3.4.0 app/javascript/node_modules/fbjs/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
cortex-0.1.3 spec/dummy/node_modules/fbjs/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
cortex-0.1.3 spec/dummy/node_modules/fbjs/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
lanes-0.8.0 node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
lanes-0.8.0 node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
babel-schmooze-sprockets-0.1.3 node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js