@defunctzombie/uniq-component
Remove repeated elements of an Array
Last updated 5 years ago by defunctzombie .
Original npm · Tarball · package.json
$ cnpm install @defunctzombie/uniq-component 
SYNC missed versions from official npm registry.

Uniq

Remove repeated elements of an Array

Installation

$ npm install uniq-component
$ component install yields/uniq

API

uniq(arr)

var uniq = require('uniq');
var arr = [1, 2, 3, 1, 2, 3, 1, 2, 3];
uniq(arr); // -> [1, 2, 3]

uniq(arr, select)

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]

Tests

Download testing dependecies

npm install

Run tests

make test

License

MIT

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |