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

ArrayUniqueItemInfo Op

Ops.Array.ArrayUniqueItemInfo


ArrayUniqueItemInfo
Namespace: Ops.Array

Op author: pandur

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

example patch id

youtube id

caniuse query

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

Open Example In Editor


Patches using ArrayUniqueItemInfo