Initial commit
[yaffs-website] / node_modules / array-differ / readme.md
1 # array-differ [![Build Status](https://travis-ci.org/sindresorhus/array-differ.svg?branch=master)](https://travis-ci.org/sindresorhus/array-differ)
2
3 > Create an array with values that are present in the first input array but not additional ones
4
5
6 ## Install
7
8 ```sh
9 $ npm install --save array-differ
10 ```
11
12
13 ## Usage
14
15 ```js
16 var arrayDiffer = require('array-differ');
17
18 arrayDiffer([2, 3, 4], [3, 50]);
19 //=> [2, 4]
20 ```
21
22 ## API
23
24 ### arrayDiffer(input, values, [values, ...])
25
26 Returns the new array.
27
28 #### input
29
30 Type: `array`
31
32 #### values
33
34 Type: `array`
35
36 Arrays of values to exclude.
37
38
39 ## License
40
41 MIT © [Sindre Sorhus](http://sindresorhus.com)