es6.reflect.delete-property.js 404 B

1234567891011
  1. // 26.1.4 Reflect.deleteProperty(target, propertyKey)
  2. var $export = require('./_export');
  3. var gOPD = require('./_object-gopd').f;
  4. var anObject = require('./_an-object');
  5. $export($export.S, 'Reflect', {
  6. deleteProperty: function deleteProperty(target, propertyKey) {
  7. var desc = gOPD(anObject(target), propertyKey);
  8. return desc && !desc.configurable ? false : delete target[propertyKey];
  9. }
  10. });