Lodash.filter

Iterates over elements of collection, returning an array of all elements predicate returns truthy for. The predicate is invoked with three arguments: (value, index|key, collection).

Note: Unlike _.remove, this method returns a new array.

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

Return Value

Type: auto ref

- Lodash chained on (Array): the new filtered array.

Meta