• Make an assertion, error will be thrown if expr have truthy value.

    Parameters

    • expr: unknown
    • Optional msg: string

    Returns asserts expr is Falsy

    Since

    24.7.0

    Example

    import { assertFalse } from "assert";

    assertFalse(false); // Doesn't throw
    assertFalse(true); // Throws