Initial commit
[yaffs-website] / node_modules / array-unique / README.md
1 # array-unique [![NPM version](https://badge.fury.io/js/array-unique.svg)](http://badge.fury.io/js/array-unique)  [![Build Status](https://travis-ci.org/jonschlinkert/array-unique.svg)](https://travis-ci.org/jonschlinkert/array-unique) 
2
3 > Return an array free of duplicate values. Fastest ES5 implementation.
4
5 ## Install with [npm](npmjs.org)
6
7 ```bash
8 npm i array-unique --save
9 ```
10
11 ## Usage
12
13 ```js
14 var unique = require('array-unique');
15
16 unique(['a', 'b', 'c', 'c']);
17 //=> ['a', 'b', 'c']
18 ```
19
20 ## Related
21 * [arr-diff](https://github.com/jonschlinkert/arr-diff): Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.
22 * [arr-union](https://github.com/jonschlinkert/arr-union): Returns an array of unique values using strict equality for comparisons.
23 * [arr-flatten](https://github.com/jonschlinkert/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten.
24 * [arr-reduce](https://github.com/jonschlinkert/arr-reduce): Fast array reduce that also loops over sparse elements.
25 * [arr-map](https://github.com/jonschlinkert/arr-map): Faster, node.js focused alternative to JavaScript's native array map.
26 * [arr-pluck](https://github.com/jonschlinkert/arr-pluck): Retrieves the value of a specified property from all elements in the collection.
27
28 ## Run tests
29 Install dev dependencies.
30
31 ```bash
32 npm i -d && npm test
33 ```
34
35 ## Contributing
36 Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/array-unique/issues)
37
38 ## Author
39
40 **Jon Schlinkert**
41  
42 + [github/jonschlinkert](https://github.com/jonschlinkert)
43 + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 
44
45 ## License
46 Copyright (c) 2015 Jon Schlinkert  
47 Released under the MIT license
48
49 ***
50
51 _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 24, 2015._