@newdash/newdash
Version:
javascript/typescript utility library
12 lines (11 loc) • 356 B
TypeScript
export default baseUnset;
/**
* The base implementation of `unset`.
*
* @private
* @ignore
* @param {Object} object The object to modify.
* @param {Array|string} path The property path to unset.
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
*/
declare function baseUnset(object: any, path: any[] | string): boolean;