beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
ArrayUniqueItemInfo
Ops.Array.ArrayUniqueItemInfo
Namespace: Ops.Array
will give you information about the count of "duplicates" in an array, as an object

summary (oneliner)

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

doc

issues

youtube id

collections

related ops

Inputs

In (Array)

an array of arbitrary values


Outputs

Result (Array)

an array with all the unique values in the input-array


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
ArrayUniqueItemInfo example:

a simple example for the ArrayUniqueItemInfo op



Credits


Examples using ArrayUniqueItemInfo

Public Patches using ArrayUniqueItemInfo