beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
ArrayUnique
Ops.Array.ArrayUnique
Namespace: Ops.Array
filters an array for duplicate items and returns all unique items in a new array

summary (oneliner)

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",
];

doc

issues

youtube id

collections

related ops

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 Documentationcancel save
ArrayUnique example:

simple example for the ArrayUnique Op



Credits


Examples using ArrayUnique

Public Patches using ArrayUnique