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.
- Host: GitHub
- URL: https://github.com/lamansky/deduplicate
- Owner: lamansky
- License: mit
- Created: 2017-02-15T18:56:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-15T19:09:58.000Z (over 9 years ago)
- Last Synced: 2025-03-02T09:41:23.971Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
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'
```