array-uniq
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

array-uniq

Create an array without duplicates

Install

$ npm install array-uniq

Usage

import arrayUniq from 'array-uniq';

arrayUniq([1, 1, 2, 3, 3]);
//=> [1, 2, 3]

arrayUniq(['foo', 'foo', 'bar', 'foo']);
//=> ['foo', 'bar']

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    1,470
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    1,470
  • 2.1.0
    54,226
  • 2.0.0
    7,721
  • 1.0.3
    7,646,879
  • 1.0.2
    336,288
  • 1.0.1
    25
  • 1.0.0
    10
  • 0.1.1
    18,738
  • 0.1.0
    11

Package Sidebar

Install

npm i array-uniq

Weekly Downloads

8,065,368

Version

3.0.0

License

MIT

Unpacked Size

2.91 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus