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