Detalhes do pacote

is-array-uniq

Richienb35MIT2.0.1

Check if all the items in an array are unique.

array, unique, check, assert

readme (leia-me)

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.