pullAt
_.pullAt(indexes, array)
# Ⓢ [Ⓣ][1] Ⓝ
Removes elements from array corresponding to indexes and returns an
array of removed elements.
Since
3.0.0
Arguments
indexes(number|number[]): The indexes of elements to remove.array(Array): The array to modify.
Returns
(Array): Returns the new array of removed elements.
Example
var array = ['a', 'b', 'c', 'd'];
var pulled = _.pullAt([1, 3], array);
// => ['a', 'c']
// => ['b', 'd']