map<A, B>(f): (fa) => Option<B>
Maps a function over the value of an Option.
Type Parameters
A: A
The input type.
B: B
The output type.
Parameters
f: (a) => B
The mapping function.
Returns
A function that transforms the Option.
Since
2.0.0