lastMap(fn) is the lighter version of filterMap(fn).last().
lastMap(fn)
filterMap(fn).last()
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
The last non-none result.
lastMap(fn)
is the lighter version offilterMap(fn).last()
.