Skip to main content
Module

x/hkts/option.ts>toNull

Functional programming tools: option, either, task, state, optics, etc.
Latest
variable toNull
import { toNull } from "https://deno.land/x/hkts@v0.0.52/option.ts";

toNullable returns either null or the inner value of an Option. This is useful for interacting with code that handles null but has no concept of the Option type.

type

<A>(ma: Option<A>) => A | null