-
(inner) del(object, path, cleanupopt)
-
Delete a given property of an object, taking care of deleting the empty objects possible generated by the
deletion too.
Parameters:
Name |
Type |
Attributes |
Description |
object |
Object
|
|
The concerned object. |
path |
String
|
|
The concerned path. |
cleanup |
Boolean
|
<optional>
|
Delete the empty objects generated by the deletion.
Default: true |
- Source:
-
(inner) get(object, path) → {*}
-
Get a property from an object, whatever its depth in the object.
Parameters:
Name |
Type |
Description |
object |
Object
|
The concerned object. |
path |
String
|
The path of the targeted property (i.e "companies.main.name"). |
- Source:
Returns:
Your targeted property, or `undefined`.
-
Type
-
*
-
(inner) set(object, path, value, overrideopt)
-
Set a given value to an object at a given path, regardless the existence of intermediate properties normally
necessary for JavaScript.
Parameters:
Name |
Type |
Attributes |
Description |
object |
Object
|
|
The concerned object. |
path |
String
|
|
The concerned path. |
value |
*
|
|
The value to set |
override |
Boolean
|
<optional>
|
Tell whether we should override existing value (false) or not (true)
Default: true |
- Source: