T if Arr is an array of elements of type T, otherwise never.
T
Arr
never
ArrayOf<string[], string & boolean>; // string[]ArrayOf<string[], string & boolean>; // string[] ArrayOf<Record<string, number>[], number>; // never Copy
ArrayOf<string[], string & boolean>; // string[]ArrayOf<string[], string & boolean>; // string[] ArrayOf<Record<string, number>[], number>; // never
Returns
T
ifArr
is an array of elements of typeT
, otherwisenever
.Example