typelab / assertions / IsArray
type IsArray<T> = _IsTrue<IfArray<T, true, false>>;Checks if a given type T is an Array type.
| Type Parameter | Description |
|---|---|
|
|
The type to be checked. |
true if T is an Array type, false otherwise.
type Valid = IsArray<string[]>; // true
type Invalid = IsArray<string>; // false