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

toUndefinableFromOk

Unwrap T if input is Ok(T). Otherwise, return undefined.

function toUndefinableFromOk<T>(input: Result<T, unknown>): Undefinable<T>;
§
toUndefinableFromOk<T>(input: Result<T, unknown>): Undefinable<T>
[src]

§Type Parameters

§Parameters

§
input: Result<T, unknown>
[src]

§Return Type

§
Undefinable<T>
[src]