Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

unwrapOr

function unwrapOr<T, E>(r, fallback): T;

Defined in: packages/engine/src/errors/Result.ts:71

Unwrap a success, or return fallback for a failure. Never throws.

Type Parameter
T
E
ParameterType
rResult<T, E>
fallbackT

T