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

fromNullable

import { fromNullable } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/datum.ts";

Create a Datum from a nullable value.

@example
import { fromNullable } from "./datum.ts";

const datum1 = fromNullable("value"); // Replete("value")
const datum2 = fromNullable(null); // Initial
function fromNullable<A>(a: A): Datum<NonNullable<A>>;
§
fromNullable<A>(a: A): Datum<NonNullable<A>>
[src]

§Type Parameters

§Parameters

§Return Type

§
Datum<NonNullable<A>>
[src]