Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

unwrapOrElseForOption

Unwraps a result input, returns the content of an Some(T). If the value is an None then it calls def with its value.

function unwrapOrElseForOption<T>(input: Option<T>, recoverer: RecoveryFn<T>): T;
§
unwrapOrElseForOption<T>(input: Option<T>, recoverer: RecoveryFn<T>): T
[src]

§Type Parameters

§Parameters

§
input: Option<T>
[src]
§
recoverer: RecoveryFn<T>
[src]

§Return Type