0.1.0 • Published 9 years ago
distinct v0.1.0
distinct()
Because nobody wants repeated things
Install
npm install distinct
Just call it and it will retrieve just all distinct values
var distinct = require('distinct');
var arr = distinct([1, 1, 2, 3, 3, 3, 4]);
console.log(arr); // [1, 2, 3, 4]
Thats it!
0.1.0
9 years ago