source: trip-planner-front/node_modules/core-js/modules/es.reflect.delete-property.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 552 bytes
Line 
1var $ = require('../internals/export');
2var anObject = require('../internals/an-object');
3var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
4
5// `Reflect.deleteProperty` method
6// https://tc39.es/ecma262/#sec-reflect.deleteproperty
7$({ target: 'Reflect', stat: true }, {
8 deleteProperty: function deleteProperty(target, propertyKey) {
9 var descriptor = getOwnPropertyDescriptor(anObject(target), propertyKey);
10 return descriptor && !descriptor.configurable ? false : delete target[propertyKey];
11 }
12});
Note: See TracBrowser for help on using the repository browser.