Skip to main content
Module

x/fun/mod.ts>option.isNone

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function option.isNone
import { option } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { isNone } = option;

Tests wether an Option is None, returning true if the passed option is None and false if it is Some.

Examples

Example 1

import * as O from "./option.ts";

const result1 = O.isNone(O.none); // true
const result2 = O.isNone(O.some(1)); // false