Await a ResultAsync and extract the success value, falling back to fallback on err.
fallback
err
Dual API — works data-first or curried for use in pipe.
pipe
const prefs = await pipe( loadUserPrefs(userId), ResultAsync.getOr(defaultPrefs), ) Copy
const prefs = await pipe( loadUserPrefs(userId), ResultAsync.getOr(defaultPrefs), )
Await a ResultAsync and extract the success value, falling back to
fallbackonerr.Dual API — works data-first or curried for use in
pipe.