ArrayUnique Op

ArrayUnique

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

Edit Documentation

Full Name
  • Ops.Array.ArrayUnique
Visibility
  • Core Op - Official cables op
License
  • MIT
Author


 

Example Patch ArrayUnique example

simple example for the ArrayUnique Op

Open In Editor

INPUT PORTS


array (Array)

input array

Format index (Number:integer )

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

Format (String)

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

OUTPUT PORTS


arrayOut (Array)

deduped array output

Array Length Out (Number)

length of the new array


Patches using ArrayUnique

  • Examples
  • Public
  • My Patches