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

toNullableFromErr

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

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

§Type Parameters

§Parameters

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

§Return Type

§
Nullable<E>
[src]