Home > types-kit > IsEmptyTypeArray
If T is a empty array, return true, else return false.
Signature:
export type IsEmptyTypeArray<T extends readonly unknown[]> = T extends T
? IsExtends<T['length'], 0>
: neverReferences: IsExtends
// Expect: true
type Foo = IsEmptyTypeArray<[]>