arrayEach = function arrayEach(iterator, array) {
  for (var i = 0; i < array.length; i += 1) {
    // Break iteration early if `iterator` returns `false`
    if (iterator(array[i], i, array) === false) {
      break;
    }
  }
}
Internal implementation of `each`. Works on arrays and array-like data structures.

@name arrayEach
@api private
@param {Function(value, key, collection)} iterator The function to invoke per iteration.
@param {Array} array The array(-like) structure to iterate over.
@return {undefined}