libs/lodash.js
function baseEach(collection, callback) {
      var index = -1,
          iterable = collection,
          length = collection ? collection.length : 0;

      if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
        while (++index < length) {
          if (callback(iterable[index], index, collection) === false) {
            break;
          }
        }
      } else {
        baseForOwn(collection, callback);
      }
      return collection;
    }
function baseEach(collection, callback) {
      var index = -1,
          iterable = collection,
          length = collection ? collection.length : 0;

      if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
        while (++index < length) {
          if (callback(iterable[index], index, collection) === false) {
            break;
          }
        }
      } else {
        baseForOwn(collection, callback);
      }
      return collection;
    }
function baseEach ( collection , callback ) { var index = - 1 , iterable = collection , length = collection ? collection . length : 0 ; if ( typeof length == 'number' && length > - 1 && length <= maxSafeInteger ) { while ( ++ index < length ) { if ( callback ( iterable [ index ] , index , collection ) === false ) { break ; } } } else { baseForOwn ( collection , callback ) ; } return collection ; }
The base implementation of `_.forEach` without support for callback
shorthands or `this` binding.

@private
@param {Array|Object|string} collection The collection to iterate over.
@param {Function} callback The function called per iteration.
@returns {Array|Object|string} Returns `collection`.
The base implementation of _ . forEach without support for callback shorthands or this binding .