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

ArrayUniqueItemInfo Op



ArrayUniqueItemInfo
Namespace: Ops.Array

Op author: pandur

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


Inputs

array (Array)

Outputs

objectOut (Object)

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

ArrayUniqueItemInfo example

a simple example for the ArrayUniqueItemInfo op


Patches using ArrayUniqueItemInfo

  • Examples (1)
  • Public
  • My Patches