ArkhetestcastArraySur cette pagecastArray() castArray<T>(obj): T[] Casts a value to an array type for tests. Type Parameters T: T = any The array element type. Parameters obj: unknown The value to cast. Returns: T[] The value cast to T[]. Since 2.0.0