Open
Description
With flatMap
added with flat
to reduce iterations and allocations, it would be nice to have an accompanying filterMap
method as well. I often find filter and map used together.
Something like this:
[{active: true, label: "foo"}, {active: true, label: "bar"}]
.filter(v => v.active)
.map(v => v.label)
Could be written as:
[{active: true, label: "foo"}, {active: true, label: "bar"}]
.filterMap(v => v.active && v.label)
Metadata
Metadata
Assignees
Labels
No labels