@n3okill/utils
Version:
Many javascript helpers
8 lines (7 loc) • 344 B
TypeScript
/**
* Remove a property from the object
* @param obj The object where to remove the property
* @param {string | Array<string>} name The name of the property can be on the form "a.b.c[1].d"
* @returns {any} The value of the removed property if defined
*/
export declare function removeProperty(obj: any, name: string | Array<string>): any;