wallet-core/node_modules/core-js/modules/es6.reflect.delete-property.js
2017-05-27 17:36:13 +02:00

11 lines
405 B
JavaScript

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