array-uniq
Create an array without duplicates
Last updated 6 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm
$ 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 (6 years ago)

2 Versions

  • 2.1.0                                ...           6 years ago
  • 1.0.3                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org