Type Alias IsLooseArray<T, Then, Else>

IsLooseArray<T, Then, Else>: LooseArrayType<T, Then, Else>

🎭 predicate

Validate that T is an array or tuple.

Type Parameters

  • T
  • Then = true
  • Else = false
type R = IsLooseArray<number[]> // true
type R = IsLooseArray<[1]> // true

type R = IsLooseArray<number> // false