filterMap filers and maps an iterable at the same time.
filterMap
It makes chains of filter and map more concise, as it shortens map().filter().map() to a single call.
filter
map
map().filter().map()
An array
A function that produces an Option.
Option
Optional
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
undefined
An array of filtered and mapped values.
filterMapfilers and maps an iterable at the same time.It makes chains of
filterandmapmore concise, as it shortensmap().filter().map()to a single call.