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

toNullableFromOk

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

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

§Type Parameters

§Parameters

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

§Return Type

§
Nullable<T>
[src]