import { remove } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/array.js";
Removes all elements from array
that predicate
returns truthy for
and returns an array of the removed elements. The predicate is invoked
with three arguments: (value, index, array).
Note: Unlike _.filter
, this method mutates array
. Use _.pull
to pull elements from an array by value.