Path
Functions
- set()
Sets the value on the object at the path. This will create intermediate objects as necessary.
- delete(obj) ⇒
boolean
Deletes the value on the object at the path. This will not create intermediate.
- copy()
Creates a shallow copy of the object and all the paths References to objects that are not in the path will reference the same object. If the value is not undefined, it will be set on the copied object.
set()
Sets the value on the object at the path. This will create intermediate objects as necessary.
boolean
delete(obj) ⇒ Deletes the value on the object at the path. This will not create intermediate.
Kind: global function
Returns: boolean
- true if a delete occurred
Param | Type | Description |
---|---|---|
obj | object | the object to remove the path from |
copy()
Creates a shallow copy of the object and all the paths References to objects that are not in the path will reference the same object. If the value is not undefined, it will be set on the copied object.
Kind: global function