An open API service indexing awesome lists of open source software.

https://github.com/lamansky/deduplicate

[Node.js] Removes duplicate array elements or string characters.
https://github.com/lamansky/deduplicate

Last synced: 2 months ago
JSON representation

[Node.js] Removes duplicate array elements or string characters.

Awesome Lists containing this project

README

          

# deduplicate

A [Node.js](https://nodejs.org/) module that removes duplicate array elements or string characters.

## Installation

```bash
npm install deduplicate --save
```

The module exposes a single function.

## Usage

```javascript
const deduplicate = require('deduplicate')
deduplicate([1, 1, 1]) // [1]
deduplicate('aaa') // 'a'
```