$ gnpm 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']
Copyright 2013 - present © cnpmjs.org | Home |