@webdeveric/utils
    Preparing search index...

    Function assertIsInt32

    • Assert that input is a 32-bit integer.

      Parameters

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

      Returns asserts input is Int32

      assertIsInt32(42); // does not throw
      assertIsInt32(2 ** 31); // throws TypeError: input is not an Int32