# @g-lib/unique

> unique is a function that remove any duplicates from an array.

Latest version **0.0.1** (published 2024-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @g-lib/unique
pnpm add @g-lib/unique
yarn add @g-lib/unique
bun add @g-lib/unique
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2024-03-08 |
| First published | 2024-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gabriel |
| Maintainers | 9abriel |
| Keywords | javascript, typescript, utils, array, object, string, number, boolean |

## Links

- npm: https://www.npmjs.com/package/@g-lib/unique
- Repository: https://github.com/9a8ri3L/unique
- Homepage: https://github.com/9a8ri3L/unique#readme
- Issues: https://github.com/9a8ri3L/unique/issues
- npm.io page: https://npm.io/package/@g-lib/unique

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2024-03-08

## README

![GitHub Release](https://img.shields.io/github/v/release/9a8ri3L/unique)
![NPM License](https://img.shields.io/npm/l/%40g-lib%2Funique)
![GitHub forks](https://img.shields.io/github/forks/9a8ri3L/unique?style=plastix&color=yellow)
![GitHub stars](https://img.shields.io/github/stars/9a8ri3L/unique?style=flat-square)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/1adbc875e33c46d1a07ee1d2dc8abdf0)](https://app.codacy.com/gh/9a8ri3L/unique/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
![NPM Downloads](https://img.shields.io/npm/dt/%40g-lib%2Funique)

![GitHub commits since latest release](https://img.shields.io/github/commits-since/9a8ri3L/unique/latest)
![GitHub contributors](https://img.shields.io/github/contributors-anon/9a8ri3L/unique)
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/%40g-lib/unique)

# unique

### Function that removes any duplicated elements in the array.

#### install

```
npm i @g-lib/unique
```

```
yarn add @g-lib/unique
```

```
pnpm add @g-lib/unique
```

#### Usage:

```ts
import unique from '@g-lib/unique';

// or

const unique = require('@g-lib/unique');

console.log(
  unique([
    { a: { key: 'a' }, b: 'b' },
    { a: { key: 'a' }, b: 'b' },
  ]),
); // [{a: {key: "a"}, b: "b"}]
console.log(
  unique([
    [1, 2, true, undefined],
    [1, 2, true, undefined],
  ]),
); // [[1,2,true, undefined ]]

// ...
```

#### Function can be used with array of multiple types

#### @see [Tests](https://github.com/9a8ri3L/unique/tree/main/__tests__)

#### Contributing is always welcomed.

#### @License [MIT](https://choosealicense.com/licenses/mit/)

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