![]() |
VOOZH | about |
The _.pullAllBy() method is used to remove the values from the original array by iterating over each element in the array by using the Iteratee function. It is almost the same as _.pullAll() function.
Syntax:
_.pullAllBy(array, values, [iteratee=_.identity])Parameters: This method accepts two parameters as mentioned above and described below:
Return Value: It returns an array.
Note: If the iteratee function is not given then _.pullAllBy() function act as _.pullAll() function.
Example 1:
Output:
👁 ImageExample 2:
Output:
👁 ImageNote: This will not work in normal JavaScript because it requires the library lodash to be installed.