distinct
v0.1.0
Published
get distinct elements
Downloads
62
Readme
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!