mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Bump to v4.13.0.
This commit is contained in:
10
pullAt.js
10
pullAt.js
@@ -15,14 +15,14 @@ define(['./_arrayMap', './_baseAt', './_baseFlatten', './_basePullAt', './_compa
|
||||
* @returns {Array} Returns the new array of removed elements.
|
||||
* @example
|
||||
*
|
||||
* var array = [5, 10, 15, 20];
|
||||
* var evens = _.pullAt(array, 1, 3);
|
||||
* var array = ['a', 'b', 'c', 'd'];
|
||||
* var pulled = _.pullAt(array, [1, 3]);
|
||||
*
|
||||
* console.log(array);
|
||||
* // => [5, 15]
|
||||
* // => ['a', 'c']
|
||||
*
|
||||
* console.log(evens);
|
||||
* // => [10, 20]
|
||||
* console.log(pulled);
|
||||
* // => ['b', 'd']
|
||||
*/
|
||||
var pullAt = rest(function(array, indexes) {
|
||||
indexes = baseFlatten(indexes, 1);
|
||||
|
||||
Reference in New Issue
Block a user