Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / object / forOwnRight.js
1 var baseForOwnRight = require('../internal/baseForOwnRight'),
2     createForOwn = require('../internal/createForOwn');
3
4 /**
5  * This method is like `_.forOwn` 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  * _.forOwnRight(new Foo, function(value, key) {
25  *   console.log(key);
26  * });
27  * // => logs 'b' and 'a' assuming `_.forOwn` logs 'a' and 'b'
28  */
29 var forOwnRight = createForOwn(baseForOwnRight);
30
31 module.exports = forOwnRight;