Function IsNull

  • Asserts that a value is null.

    Type Parameters

    • T = unknown

    Parameters

    • Optionalval: T

      Value to check

    • OptionalerrorOrMessage: string | Error

      Error object or message to throw if the value is not null

    Returns asserts val is null