platform.js
function each(object, callback) {
    var index = -1,
        length = object ? object.length : 0;

    if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
      while (++index < length) {
        callback(object[index], index, object);
      }
    } else {
      forOwn(object, callback);
    }
  }
function each(object, callback) {
    var index = -1,
        length = object ? object.length : 0;

    if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
      while (++index < length) {
        callback(object[index], index, object);
      }
    } else {
      forOwn(object, callback);
    }
  }
function each ( object , callback ) { var index = - 1 , length = object ? object . length : 0 ; if ( typeof length == 'number' && length > - 1 && length <= maxSafeInteger ) { while ( ++ index < length ) { callback ( object [ index ] , index , object ) ; } } else { forOwn ( object , callback ) ; } }
An iteration utility for arrays and objects.

@private
@param {Array|Object} object The object to iterate over.
@param {Function} callback The function called per iteration.
An iteration utility for arrays and objects .