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

toUndefinableFromNullable

Return undefined if input is null. Otherwise, return T directly.

function toUndefinableFromNullable<T>(input: Nullable<T>): Undefinable<T>;
§
toUndefinableFromNullable<T>(input: Nullable<T>): Undefinable<T>
[src]

§Type Parameters

§Parameters

§
input: Nullable<T>
[src]

§Return Type

§
Undefinable<T>
[src]