Lodash.remove

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.

struct Lodash
nothrow @trusted @safe ref
remove
(
T = Any
)
(
auto ref T predicate = T.init
)

Return Value

Type: auto ref

- Lodash chained on (Array): the new array of removed elements.

Meta