HAS
SourceHAS returns the value stored by the given key.
Argument | Type | Default value | Description |
key |
String |
The key name string. |
Returns Boolean
True if the key exists else false.
KEEP_KEYS
SourceKEEP_KEYS returns a new object with only given keys.
Argument | Type | Default value | Description |
obj |
Object |
Source object. | |
keys |
String, repeated |
Keys that need to be kept. |
Returns Object
New object with only given keys.
KEYS
SourceKEYS returns string array of object’s keys
Argument | Type | Default value | Description |
obj |
Object |
The object whose keys you want to extract | |
sort |
Boolean |
False |
If sort is true, then the returned keys will be sorted. |
Returns String[]
Array that contains object keys.
MERGE
SourceMERGE merge the given objects into a single object.
Argument | Type | Default value | Description |
objects |
Object, repeated |
Objects to merge. |
Returns Object
Object created by merging.
MERGE_RECURSIVE
SourceMERGE_RECURSIVE recursively merge the given objects into a single object.
Argument | Type | Default value | Description |
objects |
Objects, repeated |
Objects to merge. |
Returns Object
Object created by merging.
VALUES
SourceVALUES return the attribute values of the object as an array.
Argument | Type | Default value | Description |
object |
Object |
Target object. |
Returns Any[]
Values of document returned in any order.
ZIP
SourceZIP returns an object assembled from the separate parameters keys and values. Keys and values must be arrays and have the same length.
Argument | Type | Default value | Description |
keys |
String[] |
An array of strings, to be used as key names in the result. | |
values |
Object[] |
An array of core.value, to be used as key values. |
Returns Object
An object with the keys and values assembled.