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

toUndefinableFromErr

Unwrap E if input is Err(E). Otherwise, return undefined.

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

§Type Parameters

§Parameters

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

§Return Type

§
Undefinable<E>
[src]