Sha256: 3525a6fb0dc96ff7d8cac1f15bf86277729fb9b92e44ee5e3651753d58fa3765

Contents?: true

Size: 866 Bytes

Versions: 273

Compression:

Stored size: 866 Bytes

Contents

var baseForOwnRight = require('./_baseForOwnRight'),
    castFunction = require('./_castFunction');

/**
 * This method is like `_.forOwn` except that it iterates over properties of
 * `object` in the opposite order.
 *
 * @static
 * @memberOf _
 * @since 2.0.0
 * @category Object
 * @param {Object} object The object to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Object} Returns `object`.
 * @see _.forOwn
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.forOwnRight(new Foo, function(value, key) {
 *   console.log(key);
 * });
 * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
 */
function forOwnRight(object, iteratee) {
  return object && baseForOwnRight(object, castFunction(iteratee));
}

module.exports = forOwnRight;

Version data entries

273 entries across 271 versions & 29 rubygems

Version Path
immosquare-cleaner-0.1.27 node_modules/lodash/forOwnRight.js
immosquare-cleaner-0.1.26 node_modules/lodash/forOwnRight.js
immosquare-cleaner-0.1.25 node_modules/lodash/forOwnRight.js
immosquare-cleaner-0.1.24 node_modules/lodash/forOwnRight.js
immosquare-cleaner-0.1.23 node_modules/lodash/forOwnRight.js
sumomo-0.10.4 data/sumomo/api_modules/node_modules/lodash/forOwnRight.js
sumomo-0.10.3 data/sumomo/api_modules/node_modules/lodash/forOwnRight.js
sumomo-0.10.2 data/sumomo/api_modules/node_modules/lodash/forOwnRight.js
sumomo-0.10.1 data/sumomo/api_modules/node_modules/lodash/forOwnRight.js
sumomo-0.10.0 data/sumomo/api_modules/node_modules/lodash/forOwnRight.js
reed_sdk-1.0.1 node_modules/lodash/forOwnRight.js
reed_sdk-1.0.0 node_modules/lodash/forOwnRight.js
boring_generators-0.12.0 tmp/templates/app_template/node_modules/lodash/forOwnRight.js
sumomo-0.9.0 data/sumomo/api_modules/node_modules/lodash/forOwnRight.js
sumomo-0.8.22 data/sumomo/api_modules/node_modules/lodash/forOwnRight.js
sumomo-0.8.21 data/sumomo/api_modules/node_modules/lodash/forOwnRight.js
sumomo-0.8.20 data/sumomo/api_modules/node_modules/lodash/forOwnRight.js
sumomo-0.8.17 data/sumomo/api_modules/node_modules/lodash/forOwnRight.js
sumomo-0.8.16 data/sumomo/api_modules/node_modules/lodash/forOwnRight.js
disco_app-0.18.0 test/dummy/node_modules/lodash/forOwnRight.js