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

fromOkToOption

Convert to Some(T) if input is Ok(T). Otherwise, return None.

function fromOkToOption<T, E>(input: Result<T, E>): Option<T>;
§
fromOkToOption<T, E>(input: Result<T, E>): Option<T>
[src]

§Type Parameters

§Parameters

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

§Return Type