Skip to main content
Module

x/lodash_es/mod.ts>pullAll

lodash for deno use
Latest
function pullAll
import { pullAll } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

This method is like _.pull except that it accepts an array of values to remove.

Note: Unlike _.difference, this method mutates array.

Examples

var array = ['a', 'b', 'c', 'a', 'b', 'c'];

_.pullAll(array, ['a', 'c']); console.log(array); // => ['b', 'b']

Parameters

array

The array to modify.

values

The values to remove.