0.2.0 • Published 8 years ago

node-uniq v0.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

Node Uniq

Remove repeatable item for an array (size: 198B)

Build Status

Install

npm install node-uniq

Usage

import uniq from 'node-uniq';

let arr = [0, 1, 2, 1];
uniq(arr); # => [0, 1, 2]


let arr = [{id: 1}, {id: 2}, {id: 3}, {id: 2}];
uniq(arr, i => i.id); # => [{id: 1}, {id: 2}, {id: 3}]

Run Test

npm install

npm run test
0.2.0

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago