@webdeveric/utils
    Preparing search index...

    Function assertIsNull

    • Assert that input is null.

      Parameters

      • input: unknown
      • error: string | Error = 'input is not null'

      Returns asserts input is null

      assertIsNull(null); // does not throw
      assertIsNull(undefined); // throws TypeError: input is not null