GT2/Ejectable/node_modules/core-js/modules/es6.reflect.delete-property.js

11 lines
405 B
JavaScript

// 26.1.4 Reflect.deleteProperty(target, propertyKey)
var $export = require('./$.export')
, getDesc = require('./$').getDesc
, anObject = require('./$.an-object');
$export($export.S, 'Reflect', {
deleteProperty: function deleteProperty(target, propertyKey){
var desc = getDesc(anObject(target), propertyKey);
return desc && !desc.configurable ? false : delete target[propertyKey];
}
});