1. Docs
  2. Formulas
  3. Functions

UNIQ

Removes any duplicate elements in an array.

Categories: Arrays

Syntax

UNIQ(array)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"message": [
4
"north",
5
"south",
6
"east",
7
"east",
8
"east",
9
"south",
10
"west"
11
]
12
}
13
}

Formula

UNIQ(my_action.message)

Output

1
[
2
"north",
3
"south",
4
"east",
5
"west"
6
]

Sample actions

Event Transform
My Action
Event Transform
UNIQ

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?