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

orElseForMaybe

Return input as T if the passed input is not null and undefined. Otherwise, return the result of recoverer.

function orElseForMaybe<T>(input: Maybe<T>, recoverer: MaybeRecoveryFn<T>): Maybe<T>;
§
orElseForMaybe<T>(input: Maybe<T>, recoverer: MaybeRecoveryFn<T>): Maybe<T>
[src]

§Type Parameters

§Parameters

§
input: Maybe<T>
[src]
§
recoverer: MaybeRecoveryFn<T>
[src]

§Return Type