![]() |
VOOZH | about |
Lodash_.pullAllWith() method is similar to the _.pullAll() method that returns the first array containing the values that are in the first array not in the second array but in _.pullAllWith() all the elements of the first array are compared with the second array by applying comparison provided in third. It may be a little complex to understand by reading this but it will become simple when you see the example.
_.pullAllWith(array, values, [comparator]);Example 1: In this example, we are removing the giving array from another array that has the same value as it and printing the result in the console.
Output:
👁 ImageExample 2: In this example, we are removing the giving array from another array that has the same value as it and printing the result in the console.