• Checks whether opt is None.

    Type Parameters

    • T

    Parameters

    • opt: Option<T>

      The optional value.

    Returns opt is None

    The proof that opt is a None.

    Examples

    import { some, none, isNone } from "./option.ts";
    import { assertEquals } from "../deps.ts";

    assertEquals(isNone(some(2)), false);
    assertEquals(isNone(none()), true);

Generated using TypeDoc