ArrayUniqueItemInfo Op
will give you information about the count of "duplicates" in an array, as an object
Summary (oneliner)
<p>when given an array with "non" unique items, like:</p> <pre><code class="language-javascript">const a = [ "maus", "hund", "maus", "katze", "maus", ]; </code></pre> <p>will return an object with information on the ocurrences of every unique value, so:</p> <pre><code class="language-javascript">{ "hund" : 1, "katze": 1, "maus": 3, }; </code></pre>
- Ops.Array.ArrayUniqueItemInfo
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query