4021cb8fafc09c62c88a0aea4d0bfc095c7b798d2d5302afcebcb517204e4df636642f3f9ca55d8999693ee122a116ab19cca216e7b9304ff86c902eb3f0f0 671 B

123456789101112131415161718192021222324252627282930
  1. # array-uniq [![Build Status](https://travis-ci.org/sindresorhus/array-uniq.svg?branch=master)](https://travis-ci.org/sindresorhus/array-uniq)
  2. > Create an array without duplicates
  3. It's already pretty fast, but will be much faster when [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) becomes available in V8 (especially with large arrays).
  4. ## Install
  5. ```
  6. $ npm install --save array-uniq
  7. ```
  8. ## Usage
  9. ```js
  10. const arrayUniq = require('array-uniq');
  11. arrayUniq([1, 1, 2, 3, 3]);
  12. //=> [1, 2, 3]
  13. arrayUniq(['foo', 'foo', 'bar', 'foo']);
  14. //=> ['foo', 'bar']
  15. ```
  16. ## License
  17. MIT © [Sindre Sorhus](https://sindresorhus.com)