pull
_.pull(values, array)
# Ⓢ [Ⓣ][1] Ⓝ
Removes all given values from array using
for equality comparisons.
to remove elements from an array by predicate.
Since
2.0.0
Arguments
values(*|*[]): The values to remove.array(Array): The array to modify.
Returns
(Array): Returns array.
Example
var array = ['a', 'b', 'c', 'a', 'b', 'c'];
_.pull(['a', 'c'], array);
// => ['b', 'b']