1 var baseForOwnRight = require('./_baseForOwnRight'),
2 toFunction = require('./_toFunction');
5 * This method is like `_.forOwn` except that it iterates over properties of
6 * `object` in the opposite order.
11 * @param {Object} object The object to iterate over.
12 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
13 * @returns {Object} Returns `object`.
21 * Foo.prototype.c = 3;
23 * _.forOwnRight(new Foo, function(value, key) {
26 * // => logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'
28 function forOwnRight(object, iteratee) {
29 return object && baseForOwnRight(object, toFunction(iteratee));
32 module.exports = forOwnRight;