Check if all the elements of an array match a predicate function
a predicate function fn1
fn1
a function which takes an array and returns true if fn1 is true for all elements of the array
Check if all the elements of an array match a predicate function