common-stuff
    Preparing search index...

    Function isArray

    • Checks if value is array, acts as a typescript safeguard.

      Preserves the readonly/mutable distinction of the narrowed type.

      Type Parameters

      • T

      Parameters

      • value: T | T[]

      Returns value is T[]

      [[1], ['b'], false].filter(isArray)
      > [[1], ['b']]
    • Checks if value is array, acts as a typescript safeguard.

      Preserves the readonly/mutable distinction of the narrowed type.

      Type Parameters

      • T

      Parameters

      • value: T | readonly T[]

      Returns value is readonly T[]

      [[1], ['b'], false].filter(isArray)
      > [[1], ['b']]