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

      Parameters

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

      Returns asserts input is symbol[]

      assertIsSymbolArray([Symbol('a'), Symbol('b')]); // does not throw
      assertIsSymbolArray([Symbol('a'), 'b']); // throws TypeError: input is not an array of symbol