Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 624 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 624 Bytes

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.