_object-dps.js 404 B

12345678910111213
  1. var dP = require('./_object-dp');
  2. var anObject = require('./_an-object');
  3. var getKeys = require('./_object-keys');
  4. module.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {
  5. anObject(O);
  6. var keys = getKeys(Properties);
  7. var length = keys.length;
  8. var i = 0;
  9. var P;
  10. while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  11. return O;
  12. };