package.internals.delete-property-or-throw.js Maven / Gradle / Ivy
The newest version!
'use strict';
var tryToString = require('../internals/try-to-string');
var $TypeError = TypeError;
module.exports = function (O, P) {
if (!delete O[P]) throw new $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
};
© 2015 - 2024 Weber Informatics LLC | Privacy Policy