https://github.com/vivekimsit/array-no-repeat
Filters and returns a new array with unique elements.
https://github.com/vivekimsit/array-no-repeat
Last synced: 3 months ago
JSON representation
Filters and returns a new array with unique elements.
- Host: GitHub
- URL: https://github.com/vivekimsit/array-no-repeat
- Owner: vivekimsit
- License: mit
- Created: 2016-07-13T15:12:41.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-13T15:41:31.000Z (almost 9 years ago)
- Last Synced: 2025-03-14T02:16:59.944Z (4 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# array-no-repeat [](https://travis-ci.org/vivekimsit/array-no-repeat)
> Create an array of unique values, in order, from the input arrays.
## Install
```
$ npm install --save array-no-repeat
```## Usage
```js
const unique = require('array-no-repeat');unique([1, 2, 3]);
//=> [1, 2, 3]unique(['foo', 'foo', 'bar']);
//=> ['foo', 'bar']
```## License
MIT © [Vivek Poddar](https://www.vivekpoddar.com)