UNPKG

698 BMarkdownView Raw
1# array-uniq
2
3> Create an array without duplicates
4
5## Install
6
7```
8$ npm install array-uniq
9```
10
11## Usage
12
13```js
14import arrayUniq from 'array-uniq';
15
16arrayUniq([1, 1, 2, 3, 3]);
17//=> [1, 2, 3]
18
19arrayUniq(['foo', 'foo', 'bar', 'foo']);
20//=> ['foo', 'bar']
21```
22
23---
24
25<div align="center">
26 <b>
27 <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>
28 </b>
29 <br>
30 <sub>
31 Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
32 </sub>
33</div>