1var baseForRight = require('../internal/baseForRight'), 2 createForIn = require('../internal/createForIn'); 3 4/** 5 * This method is like `_.forIn` except that it iterates over properties of 6 * `object` in the opposite order. 7 * 8 * @static 9 * @memberOf _ 10 * @category Object 11 * @param {Object} object The object to iterate over. 12 * @param {Function} [iteratee=_.identity] The function invoked per iteration. 13 * @param {*} [thisArg] The `this` binding of `iteratee`. 14 * @returns {Object} Returns `object`. 15 * @example 16 * 17 * function Foo() { 18 * this.a = 1; 19 * this.b = 2; 20 * } 21 * 22 * Foo.prototype.c = 3; 23 * 24 * _.forInRight(new Foo, function(value, key) { 25 * console.log(key); 26 * }); 27 * // => logs 'c', 'b', and 'a' assuming `_.forIn ` logs 'a', 'b', and 'c' 28 */ 29var forInRight = createForIn(baseForRight); 30 31module.exports = forInRight; 32 33