new ObjChain(data, pluginsopt)
- Source:
Parameters:
| Name |
Type |
Attributes |
Default |
Description |
data |
string
|
Object
|
|
|
|
plugins |
Array:.<string:>
|
<optional>
|
[]
|
|
Methods
(static) init(data, pluginsopt) → {ObjChain}
- Source:
Parameters:
| Name |
Type |
Attributes |
Default |
Description |
data |
string
|
Object
|
|
|
json data |
plugins |
Array:.<string:>
|
<optional>
|
[]
|
|
Returns:
-
Type
-
ObjChain
escape(key) → {string}
- Source:
Parameters:
| Name |
Type |
Description |
key |
string
|
key with `.` |
Returns:
string with escaped `\\.`
-
Type
-
string
extend(methods, nestopt) → {ObjChain}
- Source:
take strings, make them methods to .set on
Parameters:
| Name |
Type |
Attributes |
Default |
Description |
methods |
Array:.<string:>
|
|
|
|
nest |
boolean
|
<optional>
|
false
|
nest the .set |
Returns:
-
Type
-
ObjChain
has(key) → {Boolean}
- Source:
Parameters:
| Name |
Type |
Description |
key |
string
|
any
|
|
Returns:
-
Type
-
Boolean
setIfNotEmpty(key, val) → {ObjChain}
- Source:
- See:
-
sets !.has(key)
Parameters:
| Name |
Type |
Description |
key |
string
|
any
|
|
val |
Serializable
|
any
|
|
Returns:
@chainable
-
Type
-
ObjChain
toString() → {string}
- Source:
Returns:
-
Type
-
string
- Source:
use middleware
Parameters:
| Name |
Type |
Description |
obj |
Object
|
|
Returns:
-
Type
-
ObjChain
val(keyopt) → {any}
- Source:
get a value
Parameters:
| Name |
Type |
Attributes |
Default |
Description |
key |
string
|
any
|
null
|
<optional>
|
null
|
|
Returns:
current key or named if there is key param
-
Type
-
any