unset-value
Delete nested properties from an object using dot notation.
Install
Install with npm:
Usage
Examples
Updates the object when a property is deleted
Returns true when a property is deleted
Returns true
when a property does not exist
true
when a property does not existThis is consistent with delete
behavior in that it does not throw when a property does not exist.
delete nested values
throws on invalid args
About
Related projects
get-values: Return an array of all values from the given object. | homepage
omit-value: Omit properties from an object or deeply nested property of an object using object path… more | homepage
union-value: Set an array of unique values as the property of an object. Supports setting deeply… more | homepage
upsert-value: Update or set nested values and any intermediaries with dot notation (
'a.b.c'
) paths. | homepage
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Contributors
Building docs
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
Running tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
Author
Jon Schlinkert
License
Copyright © 2017, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.4.2, on February 25, 2017.
Last updated