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

x/ahh/mod.ts>O.isNone

Idiomatic type-safety structures for TypeScript.
Go to Latest
method O.isNone
Re-export
import { O } from "https://deno.land/x/ahh@v0.10.0/mod.ts";

Returns whether opt is a None.

Examples

import { O, None } from "./mod.ts";

console.log(O.isNone(1)); // false
console.log(O.isNone(None)); // true