Skip to content

map

map<E, A, B>(f): (outcome) => Outcome<E, B>

Defined in: Core/Op.ts:615

Transforms the success value. Err and Nil pass through unchanged.

E

A

B

(a) => B

(outcome): Outcome<E, B>

Outcome<E, A>

Outcome<E, B>

pipe(outcome, Op.map(user => user.name));