Bump to v3.0.0.

This commit is contained in:
John-David Dalton
2014-12-31 21:48:44 -06:00
committed by jdalton
commit f9606b394c
349 changed files with 23038 additions and 0 deletions

33
array/pullAt.js Normal file
View File

@@ -0,0 +1,33 @@
var baseFlatten = require('../internal/baseFlatten'),
basePullAt = require('../internal/basePullAt');
/**
* Removes elements from `array` corresponding to the given indexes and returns
* an array of the removed elements. Indexes may be specified as an array of
* indexes or as individual arguments.
*
* **Note:** Unlike `_.at`, this method mutates `array`.
*
* @static
* @memberOf _
* @category Array
* @param {Array} array The array to modify.
* @param {...(number|number[])} [indexes] The indexes of elements to remove,
* specified as individual indexes or arrays of indexes.
* @returns {Array} Returns the new array of removed elements.
* @example
*
* var array = [5, 10, 15, 20];
* var evens = _.pullAt(array, [1, 3]);
*
* console.log(array);
* // => [5, 15]
*
* console.log(evens);
* // => [10, 20]
*/
function pullAt(array) {
return basePullAt(array || [], baseFlatten(arguments, false, false, 1));
}
module.exports = pullAt;