beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

ArrayUnique Op

Ops.Array.ArrayUnique


ArrayUnique
Namespace: Ops.Array

Op author: pandur

filters an array for duplicate items and returns all unique items in a new array


when given an array with "non" unique items, like:

const a = [
  "maus",
  "hund",
  "maus",
  "katze",
  "maus",
];

will return only the unique values in that array, as a new array, so:

const a = [
  "hund",
  "katze",
  "maus",
];


Inputs

array (Array)

input array

Format index (integer /Number)

choose between 3 different unique modes: x, xy, xyz

Format (String)

choose between 3 different unique modes: x, xy, xyz

Outputs

arrayOut (Array)

deduped array output

Array Length Out (Number)

length of the new array

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

ArrayUnique example

simple example for the ArrayUnique Op

Open Example In Editor

Patches using ArrayUnique