@webdeveric/utils
    Preparing search index...

    Function assertIsBigInt

    • Assert that input is a bigint.

      Parameters

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

      Returns asserts input is bigint

      assertIsBigInt(10n); // does not throw
      assertIsBigInt(10); // throws TypeError: input is not a bigint