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

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

      if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
        while (length--) {
          if (callback(iterable[length], length, collection) === false) {
            break;
          }
        }
      } else {
        baseForOwnRight(collection, callback);
      }
      return collection;
    }
function baseEachRight ( collection , callback ) { var iterable = collection , length = collection ? collection . length : 0 ; if ( typeof length == 'number' && length > - 1 && length <= maxSafeInteger ) { while ( length -- ) { if ( callback ( iterable [ length ] , length , collection ) === false ) { break ; } } } else { baseForOwnRight ( collection , callback ) ; } return collection ; }
The base implementation of `_.forEachRight` 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 _ . forEachRight without support for callback shorthands or this binding .