source: trip-planner-front/node_modules/core-js/internals/object-define-properties.js@ 6a80231

Last change on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 706 bytes
Line 
1var DESCRIPTORS = require('../internals/descriptors');
2var definePropertyModule = require('../internals/object-define-property');
3var anObject = require('../internals/an-object');
4var objectKeys = require('../internals/object-keys');
5
6// `Object.defineProperties` method
7// https://tc39.es/ecma262/#sec-object.defineproperties
8// eslint-disable-next-line es/no-object-defineproperties -- safe
9module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
10 anObject(O);
11 var keys = objectKeys(Properties);
12 var length = keys.length;
13 var index = 0;
14 var key;
15 while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
16 return O;
17};
Note: See TracBrowser for help on using the repository browser.