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.

/array-uniq/

    Package Sidebar

    Install

    npm i array-uniq

    Weekly Downloads

    8,885,990

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    2.91 kB

    Total Files

    5

    Last publish

    Collaborators

    • sindresorhus