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

2.0.1 • Public • Published

is-array-uniq Travis CI Build Status

Check if all the items in an array are unique.

NPM Badge

Install

npm install is-array-uniq

Usage

const isArrayUniq = require("is-array-uniq");
 
isArrayUniq([1, 2]);
//=> true
 
isArrayUniq([1, 1]);
//=> false

API

isArrayUniq(array)

array

Type: array

The array to check.

Package Sidebar

Install

npm i is-array-uniq

Weekly Downloads

4

Version

2.0.1

License

MIT

Unpacked Size

3.09 kB

Total Files

6

Last publish

Collaborators

  • richienb