_hide.js 286 B

123456789
  1. var dP = require('./_object-dp');
  2. var createDesc = require('./_property-desc');
  3. module.exports = require('./_descriptors') ? function (object, key, value) {
  4. return dP.f(object, key, createDesc(1, value));
  5. } : function (object, key, value) {
  6. object[key] = value;
  7. return object;
  8. };