import type {UnknownArray} from 'type-fest';type IsArray<T> = T extends UnknownArray ? true : false;type A = IsArray<['foo']>;//=> truetype B = IsArray<readonly number[]>;//=> truetype C = IsArray<string>;//=> false Type Array
import type {UnknownArray} from 'type-fest';type IsArray<T> = T extends UnknownArray ? true : false;type A = IsArray<['foo']>;//=> truetype B = IsArray<readonly number[]>;//=> truetype C = IsArray<string>;//=> false Type Array