array-uniq
Create an array without duplicates
Last updated 7 months ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install array-uniq 
SYNC missed versions from official npm registry.

array-uniq Build Status

Create an array without duplicates

Install

$ npm install array-uniq

Usage

const arrayUniq = require('array-uniq');

arrayUniq([1, 1, 2, 3, 3]);
//=> [1, 2, 3]

arrayUniq(['foo', 'foo', 'bar', 'foo']);
//=> ['foo', 'bar']

License

MIT © Sindre Sorhus

Current Tags

  • 2.1.0                                ...           latest (7 months ago)

8 Versions

  • 2.1.0                                ...           7 months ago
  • 2.0.0                                ...           a year ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 839
This Week 40,836
This Month 291,361
Last Day 20,498
Last Week 106,246
Last Month 441,019
Dependencies (0)
None
Dev Dependencies (3)
Dependents (243)

Copyright 2014 - 2016 © taobao.org |