Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
809 B
20 lines
809 B
2 years ago
|
var DESCRIPTORS = require('../internals/descriptors');
|
||
|
var definePropertyModule = require('../internals/object-define-property');
|
||
|
var anObject = require('../internals/an-object');
|
||
|
var toIndexedObject = require('../internals/to-indexed-object');
|
||
|
var objectKeys = require('../internals/object-keys');
|
||
|
|
||
|
// `Object.defineProperties` method
|
||
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
||
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
||
|
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
|
||
|
anObject(O);
|
||
|
var props = toIndexedObject(Properties);
|
||
|
var keys = objectKeys(Properties);
|
||
|
var length = keys.length;
|
||
|
var index = 0;
|
||
|
var key;
|
||
|
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
||
|
return O;
|
||
|
};
|