# isunique

> A module that helps determine if an array has only unique elements

Latest version **1.0.0** (published 2015-08-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install isunique
pnpm add isunique
yarn add isunique
bun add isunique
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-08-26 |
| First published | 2015-08-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Joey Sham |
| Maintainers | joeyism |
| Keywords | is, unique, contains, array, sort, find, repeats |

## Links

- npm: https://www.npmjs.com/package/isunique
- Repository: https://github.com/joeyism/node-isUnique
- Homepage: https://github.com/joeyism/node-isUnique#readme
- Issues: https://github.com/joeyism/node-isUnique/issues
- npm.io page: https://npm.io/package/isunique

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-08-26

## README

# isUnique

[![Build Status](https://travis-ci.org/joeyism/node-isUnique.svg)](https://travis-ci.org/joeyism/node-isUnique)

Checks to see if an array has only unique values

## Installation

    > npm install --save isunique

## Usage

### isUnique
Returns true if the array only has unique elements. Otherwise, return false

    [1].isUnique() // true
    [1,2].isUnique() // true
    [1,1].isUnique() // false

## getUnique
Gets the unique version of the array. If there are two matching elements, the latter is removed

    [1].getUnique() // [1]
    [1,1].getUnique() // [1]
    [1,2].getUnique() // [1,2]
    [1,2,1,2].getUnique() // [1,2]
    [1,2,2,2].getUnique() // [1,2]

## Version
**1.0.0**
* First working version

---
_Source: https://npm.io/package/isunique · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
