analytics.js
function baseEach(iterator, object) {
  var ks = keys(object);

  for (var i = 0; i < ks.length; i += 1) {
    // Break iteration early if `iterator` returns `false`
    if (iterator(object[ks[i]], ks[i], object) === false) {
      break;
    }
  }
}
function baseEach(iterator, object) {
  var ks = keys(object);

  for (var i = 0; i < ks.length; i += 1) {
    // Break iteration early if `iterator` returns `false`
    if (iterator(object[ks[i]], ks[i], object) === false) {
      break;
    }
  }
}
function baseEach ( iterator , object ) { var ks = keys ( object ) ; for ( var i = 0 ; i < ks . length ; i += 1 ) { // Break iteration early if `iterator` returns `false` if ( iterator ( object [ ks [ i ] ] , ks [ i ] , object ) === false ) { break ; } } }
Internal implementation of `each`. Works on objects.

@name baseEach
@api private
@param {Function(value, key, collection)} iterator The function to invoke per iteration.
@param {Object} object The object to iterate over.
@return {undefined}
Internal implementation of each . Works on objects .