Checks if a value is an array of objects with specific type structure
The value to check
Array of required keys for the type T
True if the value is an array of objects matching type T
interface User { name: string; age: number; }isArrayOfType<User>(users, ["name", "age"]) // true if all objects have name and age Copy
interface User { name: string; age: number; }isArrayOfType<User>(users, ["name", "age"]) // true if all objects have name and age
Checks if a value is an array of objects with specific type structure