Skip to content

isErr

isErr<E, A>(outcome): outcome is Err<E>

Defined in: Core/Op.ts:541

Returns true if the Outcome is Err.

E

A

Outcome<E, A>

outcome is Err<E>

if (Op.isErr(outcome)) logger.error(outcome.error);