Methods
(static) containsRef(value, checkProcess, checkCallbacks) → {boolean}
Checks whether a value contains references (from_parameter, from_node).
Doesn't return references from ProcessGraph objects if checkCallbacks is set to true.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
value |
* | ||
checkProcess |
boolean | true | Set to `false` to not check for refs in a process if provided as value. |
checkCallbacks |
boolean | false | Set to `true` to also check for refs in callbacks. Only applies if `checkProcess` is true. |
Returns:
- Type
- boolean
(static) getRefs(value, getFromProcess, getFromCallbacks) → {boolean}
Returns all distinct references (from_parameter, from_node) contained in a value.
Doesn't return references from ProcessGraph objects if checkCallbacks is set to true.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
value |
* | ||
getFromProcess |
boolean | true | Set to `false` to not get refs from a process if provided as value. |
getFromCallbacks |
boolean | false | Set to `true` to also include refs in callbacks. Only applies if `getFromProcess` is true. |
Returns:
- Type
- boolean
(static) getType(value) → {string}
Returns the type of the value.
Similar to typeof, but gives more details for objects (array, parameter, callback, result, null, object).
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
Returns:
- Type
- string