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

orElseForOption

Return input as T if the passed input is Some(T). Otherwise, return the result of recoverer.

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

§Type Parameters

§Parameters

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

§Return Type