@webdeveric/utils
    Preparing search index...
    • Assert that input is an array of numbers.

      Parameters

      • input: unknown
      • error: string | Error = 'input is not an array of number'

      Returns asserts input is number[]

      assertIsNumberArray([1, 2, 3]); // does not throw
      assertIsNumberArray([1, '2', 3]); // throws TypeError: input is not an array of number