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

ArrayUniqueItemInfo Op

ArrayUniqueItemInfo

will give you information about the count of "duplicates" in an array, as an object


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

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

will return an object with information on the ocurrences of every unique value, so:

{
  "hund" : 1,
  "katze": 1,
  "maus": 3,
};

Edit Documentation

Full Name
  • Ops.Array.ArrayUniqueItemInfo
Visibility
  • Core Op - Official cables op
Author


 

Example Patch ArrayUniqueItemInfo example

a simple example for the ArrayUniqueItemInfo op

Open In Editor

INPUT PORTS


array (Array)

OUTPUT PORTS


objectOut (Object)

Usages of ArrayUniqueItemInfo

  • Examples
  • Public
  • My Patches
  • Ops