mirror of https://github.com/jkjoy/sunpeiwen.git
12 lines
415 B
JavaScript
12 lines
415 B
JavaScript
// 26.1.4 Reflect.deleteProperty(target, propertyKey)
|
|
var $export = require('./_export');
|
|
var gOPD = require('./_object-gopd').f;
|
|
var 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];
|
|
}
|
|
});
|