add unique to custom array
This block is part of the mutations group and was last modified in core v10.4.28.
add unique to custom array v10.4.28 push any given type to the array if it doesn't already exist.
In pins 8
- Array required
array - Field required
value - Boolean required
condition - value required
value - Number required
number - Date required
date - Object required
object - index required
number
Out pins 1
- mutations
mutations
Emits one array.add.unique mutation targeting the dot-path field named by the field pin, appending the value only if not already present. The value comes from the typed pins (when several are wired, the later one wins; dates become unix timestamps). An empty or unwired field pin yields an empty mutations list.
A typical wiring for add unique to custom array: the mutations out pin feeds get at index.
Version history
Introduced in v10.4.28.
Back to
mutations Return to the main group to view all sub-groups Back to mutations Return to the group to view all blocks within this group 