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,
};

Full Name
  • Ops.Array.ArrayUniqueItemInfo
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


Example Patch ArrayUniqueItemInfo example

a simple example for the ArrayUniqueItemInfo op

Open In Editor

INPUT PORTS


array (Array)

OUTPUT PORTS


objectOut (Object)

Patches using ArrayUniqueItemInfo

  • Examples
  • Public
  • My Patches