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

      Parameters

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

      Returns asserts input is boolean[]

      assertIsBooleanArray([true, false]); // does not throw
      assertIsBooleanArray([true, 'false']); // throws TypeError: input is not an array of boolean