Home > types > IsEmptyArray
判断 T 是否是空数组。
T
Signature:
export declare type IsEmptyArray<T> = T extends any[] ? T extends NonEmptyArray<any> ? false : true : false;
References: NonEmptyArray
type X = IsEmptyArray<[]> // => true