ArrayUniqueItemInfo Op

ArrayUniqueItemInfo

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


<p>when given an array with &quot;non&quot; unique items, like:</p> <pre><code class="language-javascript">const a = [ &quot;maus&quot;, &quot;hund&quot;, &quot;maus&quot;, &quot;katze&quot;, &quot;maus&quot;, ]; </code></pre> <p>will return an object with information on the ocurrences of every unique value, so:</p> <pre><code class="language-javascript">{ &quot;hund&quot; : 1, &quot;katze&quot;: 1, &quot;maus&quot;: 3, }; </code></pre>


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