UNPKG

sussy-util

Version:
14 lines (13 loc) 401 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @param {MutableObject} obj - obejct which needs a property removed * @param {string} prop - property name to be removed * @returns {MutableObject} Returns the object */ exports.default = (obj, prop) => { if (Object.prototype.hasOwnProperty.call(obj, prop)) { delete obj[prop]; } return obj; };