# @writetome51/array-remove-duplicates

> Function removes any duplicate items in an array

Latest version **2.0.0** (published 2020-08-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @writetome51/array-remove-duplicates
pnpm add @writetome51/array-remove-duplicates
yarn add @writetome51/array-remove-duplicates
bun add @writetome51/array-remove-duplicates
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-08-05 |
| First published | 2018-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steve Thompson |
| Maintainers | writetome51 |
| Keywords | array, remove, duplicate, duplicates, extra, items |

## Links

- npm: https://www.npmjs.com/package/@writetome51/array-remove-duplicates
- Repository: https://github.com/writetome51/array-remove-duplicates
- Homepage: https://github.com/writetome51/array-remove-duplicates#readme
- Issues: https://github.com/writetome51/array-remove-duplicates/issues
- npm.io page: https://npm.io/package/@writetome51/array-remove-duplicates

## Dependencies (2)

- [@writetome51/set-array](https://npm.io/package/@writetome51/set-array.md) ^2.0.0
- [@writetome51/array-get-unique-items](https://npm.io/package/@writetome51/array-get-unique-items.md) ^2.0.0

## Recent versions

- 2.0.0 (latest) — 2020-08-05
- 1.1.2 — 2019-02-28
- 1.1.1 — 2018-11-17
- 1.1.0 — 2018-11-08
- 1.0.1 — 2018-10-26
- 1.0.0 — 2018-09-28

## README

# removeDuplicates(array): void

Removes any extra instances of each item in `array`.
 
## Examples
```js
let arr = [1, 2, 3, 4, 1, 2, 3, 4, 5];  
removeDuplicates(arr);  
// arr is now [1,2,3,4,5]

arr = [1, 2, ['a','b'], 9, 1, 2, 3, 4, ['a','b']];  
removeDuplicates(arr);  
// arr is now [1, 2, ['a','b'], 9, 3, 4]

let obj = {name: 'jon'};
arr = [ obj, obj, [obj], [obj] ];
removeDuplicates(arr);
// arr is now [ obj, [obj] ]
```
## Installation
`npm i  @writetome51/array-remove-duplicates`


## Loading
```js
import {removeDuplicates} from '@writetome51/array-remove-duplicates';
```

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