function forEach(array, fn) {
    var i = -1,
        len = array.length;

    while (++i < len) {
      if (fn(array[i], i) === false) {
        return false;
      }
    }

    return true;
  }
Iterates over every element in an array.

@param {Array} array The array.
@param {Function} fn The function to call on every element, which can return
    false to stop the iteration early.
@returns {boolean} True if every element in the entire sequence was iterated,
    otherwise false.