Nanobots Producing Megastructures
Wondering what’s next for npm?Check out our public roadmap! »

array-uniq

2.1.0 • Public • Published

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

Install

npm i array-uniq

DownloadsWeekly Downloads

9,223,879

Version

2.1.0

License

MIT

Unpacked Size

2.6 kB

Total Files

5

Last publish

Collaborators

  • avatar