Checks that assertion passes for each element of the array.
const numbers = array(number);numbers([1, "2", 3]); // Error: typenumbers([1, 2, 3]); // passes Copy
const numbers = array(number);numbers([1, "2", 3]); // Error: typenumbers([1, 2, 3]); // passes
Assertion to be applied to each element of the array.
Checks that assertion passes for each element of the array.
Example