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