$ npm install array-uniq
Create an array without duplicates
$ npm install array-uniq
import arrayUniq from 'array-uniq';
arrayUniq([1, 1, 2, 3, 3]);
//=> [1, 2, 3]
arrayUniq(['foo', 'foo', 'bar', 'foo']);
//=> ['foo', 'bar']
© 2010 - cnpmjs.org x YWFE | Home | YWFE