1 var baseForRight = require('./_baseForRight'),
2 castFunction = require('./_castFunction'),
3 keysIn = require('./keysIn');
6 * This method is like `_.forIn` except that it iterates over properties of
7 * `object` in the opposite order.
13 * @param {Object} object The object to iterate over.
14 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
15 * @returns {Object} Returns `object`.
24 * Foo.prototype.c = 3;
26 * _.forInRight(new Foo, function(value, key) {
29 * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
31 function forInRight(object, iteratee) {
34 : baseForRight(object, castFunction(iteratee), keysIn);
37 module.exports = forInRight;