UNPKG

array-uniq

Version:
34 lines (24 loc) 698 B
# array-uniq > Create an array without duplicates ## Install ``` $ npm install array-uniq ``` ## Usage ```js import arrayUniq from 'array-uniq'; arrayUniq([1, 1, 2, 3, 3]); //=> [1, 2, 3] arrayUniq(['foo', 'foo', 'bar', 'foo']); //=> ['foo', 'bar'] ``` --- <div align="center"> <b> <a href="https://tidelift.com/subscription/pkg/npm-array-uniq?utm_source=npm-array-uniq&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> </b> <br> <sub> Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. </sub> </div>