function all(array, pred) {
  for (let idx = 0, len = array.length; idx < len; idx++) {
    if (!pred(array[idx])) {
      return false;
    }
  }
  return true;
}
function all(array, pred) {
  for (let idx = 0, len = array.length; idx < len; idx++) {
    if (!pred(array[idx])) {
      return false;
    }
  }
  return true;
}
function all ( array , pred ) { for ( let idx = 0 , len = array . length ; idx < len ; idx ++ ) { if ( ! pred ( array [ idx ] ) ) { return false ; } } return true ; }
returns true if all of the values in the array pass the predicate truth test.
returns true if all of the values in the array pass the predicate truth test .
Returns true if all elements in array are true