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

isNone

import { isNone } from "https://raw.githubusercontent.com/baetheus/fun/main/option.ts";

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

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

const result1 = O.isNone(O.none); // true
const result2 = O.isNone(O.some(1)); // false
function isNone<A>(m: Option<A>): m is None;
§
isNone<A>(m: Option<A>): m is None
[src]

§Type Parameters

§Parameters

§Return Type