Sha256: b8f62500ae89ff7a48d1735706971696e40270bb26909534ffbab7fd4e777451
Contents?: true
Size: 647 Bytes
Versions: 25
Compression:
Stored size: 647 Bytes
Contents
var DESCRIPTORS = require('../internals/descriptors'); var definePropertyModule = require('../internals/object-define-property'); var anObject = require('../internals/an-object'); var objectKeys = require('../internals/object-keys'); // `Object.defineProperties` method // https://tc39.github.io/ecma262/#sec-object.defineproperties module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) { anObject(O); var keys = objectKeys(Properties); var length = keys.length; var index = 0; var key; while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]); return O; };
Version data entries
25 entries across 25 versions & 7 rubygems