array-uniq
v3.0.0
Published
Create an array without duplicates
Downloads
41,274,207
Maintainers
Readme
array-uniq
Create an array without duplicates
Install
$ npm install array-uniq
Usage
import arrayUniq from 'array-uniq';
arrayUniq([1, 1, 2, 3, 3]);
//=> [1, 2, 3]
arrayUniq(['foo', 'foo', 'bar', 'foo']);
//=> ['foo', 'bar']