Object
Unset

_.unset(object, path)

Removes the property at path of object.

Note: This method mutates object.

Arguments

object (Object): The object to modify.
path (Array|string): The path of the property to unset.

Returns

(boolean): Returns true if the property is deleted, else false.

Example

Deep