29099cdb251e0924dd5ab79af6bea6181f89223c
[yaffs-website] / node_modules / uncss / node_modules / lodash / pull.js
1 var pullAll = require('./pullAll'),
2     rest = require('./rest');
3
4 /**
5  * Removes all provided values from `array` using
6  * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
7  * for equality comparisons.
8  *
9  * **Note:** Unlike `_.without`, this method mutates `array`.
10  *
11  * @static
12  * @memberOf _
13  * @category Array
14  * @param {Array} array The array to modify.
15  * @param {...*} [values] The values to remove.
16  * @returns {Array} Returns `array`.
17  * @example
18  *
19  * var array = [1, 2, 3, 1, 2, 3];
20  *
21  * _.pull(array, 2, 3);
22  * console.log(array);
23  * // => [1, 1]
24  */
25 var pull = rest(pullAll);
26
27 module.exports = pull;