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

    1.0.0 • Public • Published

    array-non-uniq Travis CI Build Status

    Get the non-unique items in an array.

    NPM Badge

    Install

    npm install array-non-uniq

    Usage

    const arrayNonUniq = require("array-non-uniq");
     
    arrayNonUniq([1, 1, 2, 3, 3]);
    //=> [1, 3]
     
    arrayNonUniq(["foo", "foo", "bar", "foo"]);
    //=> ['foo']

    API

    arrayNonUniq(array)

    array

    Type: array

    The array to process.

    Install

    npm i array-non-uniq

    DownloadsWeekly Downloads

    68

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.15 kB

    Total Files

    6

    Last publish

    Collaborators

    • richienb