Checks that assertion passes for each element of the array.

const numbers = array(number);

numbers([1, "2", 3]); // Error: type
numbers([1, 2, 3]); // passes