UNIQ

Removes any duplicate elements in an array.

Syntax 

UNIQ(array)

Examples 

Example 1

Input

{
  "my_action": {
    "message": [
      "north",
      "south",
      "east",
      "east",
      "east",
      "south",
      "west"
    ]
  }
}

Formula

UNIQ(my_action.message)

Output

["north","south","east","west"]