Type guard function that checks if an array is a 2D array of a specific type.
The type of the elements to check for.
The array to check.
boolean indicating whether the 2D array is of the specified type.
Type guard function that checks if an array is a 2D array of a specific type.