Create an array without duplicates
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig ES2015ify and require Node.js 6 May 21, 2017
.gitattributes ES2015ify and require Node.js 6 May 21, 2017
.gitignore Meta tweaks May 4, 2018
.npmrc Meta tweaks May 4, 2018
.travis.yml Meta tweaks May 4, 2018
index.js ES2015ify and require Node.js 6 May 21, 2017
license Meta tweaks May 4, 2018
package.json 2.0.0 May 4, 2018
readme.md Meta tweaks May 4, 2018
test.js Meta tweaks May 4, 2018

readme.md

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