Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-13T15:41:31.000Z (over 8 years ago)
- Last Synced: 2024-12-12T23:13:49.058Z (12 days ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# array-no-repeat [![Build Status](https://travis-ci.org/vivekimsit/array-no-repeat.svg?branch=master)](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)