Remove repeated elements of an Array
$ npm install uniq-component
$ component install yields/uniq
var uniq = require('uniq');
var arr = [1, 2, 3, 1, 2, 3, 1, 2, 3];
uniq(arr); // -> [1, 2, 3]
var uniq = require('uniq');
var arr = [1, 2, 3, 1, 2, 3, 1, 2, 3];
uniq(arr, [1, 3]); // // remove specific elements -> [1, 2, 3, 2, 2]
Download testing dependecies
npm install
Run tests
make test
MIT