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