array-uniq
Create an array without duplicates
Last updated a year 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 (a year ago)

8 Versions

  • 2.1.0                                ...           a year ago
  • 2.0.0                                ...           2 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 5,713
This Week 150,537
This Month 150,537
Last Day 10,718
Last Week 152,112
Last Month 602,119
Dependencies (0)
None
Dev Dependencies (3)
Dependents (271)

Copyright 2014 - 2016 © taobao.org |