npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

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

7,452,668

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability