Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ahh/src/option.ts>isNone

Opinionated idiomatic features for TypeScript.
Go to Latest
function isNone
import { isNone } from "https://deno.land/x/ahh@v0.13.0/src/option.ts";

Returns whether option is a None value.

Examples

Example 1

import { assert } from "../test_deps.ts";
import O from "./option.ts";

assert(O.isNone(undefined));
assert(O.isNone(null));

Returns

option is None