@kayahr/assert
    Preparing search index...

    Function assertFalsy

    • Asserts that given value is falsy.

      Type Parameters

      • T

      Parameters

      • actual: T

        The value to check.

      • Optionalreason: string

        Optional reason added to exception message when assertion fails.

      Returns asserts actual is Exclude<T, true>

      AssertionError when value is not falsy.