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

unwrapOrForOption

Unwraps a result input, returns the content of an Some(T). If the value is an None then return defaultValue.

function unwrapOrForOption<T>(input: Option<T>, defaultValue: T): T;
§
unwrapOrForOption<T>(input: Option<T>, defaultValue: T): T
[src]

§Type Parameters

§Parameters

§
input: Option<T>
[src]
§
defaultValue: T
[src]

§Return Type