| var baseForOwnRight = require('./_baseForOwnRight'), |
| castFunction = require('./_castFunction'); |
| * This method is like `_.forOwn` except that it iterates over properties of |
| * `object` in the opposite order. |
| * @param {Object} object The object to iterate over. |
| * @param {Function} [iteratee=_.identity] The function invoked per iteration. |
| * @returns {Object} Returns `object`. |
| * _.forOwnRight(new Foo, function(value, key) { |
| * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'. |
| function forOwnRight(object, iteratee) { |
| return object && baseForOwnRight(object, castFunction(iteratee)); |
| module.exports = forOwnRight; |