This file contains a series of functionalities related to getting and setting from a objects. It is based on lodash library.
Methods
# static get(obj, path, val) → {any}
Port of lodash function get.
Parameters:
Name | Type | Description |
---|---|---|
obj |
Object
|
Target object |
path |
string
|
Path to use |
val |
any
|
Default value |
Value returned
any
# static set(obj, path, val)
Port of lodash function set.
Parameters:
Name | Type | Description |
---|---|---|
obj |
Object
|
Target object. |
path |
string
|
Path to use. |
val |
any
|
Vale to set. |