mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Remove references to _.
This commit is contained in:
@@ -2,17 +2,16 @@ import baseForRight from './_baseForRight.js';
|
||||
import keysIn from './keysIn.js';
|
||||
|
||||
/**
|
||||
* This method is like `_.forIn` except that it iterates over properties of
|
||||
* This method is like `forIn` 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 The function invoked per iteration.
|
||||
* @returns {Object} Returns `object`.
|
||||
* @see _.forIn
|
||||
* @see forIn
|
||||
* @example
|
||||
*
|
||||
* function Foo() {
|
||||
@@ -22,10 +21,10 @@ import keysIn from './keysIn.js';
|
||||
*
|
||||
* Foo.prototype.c = 3;
|
||||
*
|
||||
* _.forInRight(new Foo, function(value, key) {
|
||||
* forInRight(new Foo, function(value, key) {
|
||||
* console.log(key);
|
||||
* });
|
||||
* // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
|
||||
* // => Logs 'c', 'b', then 'a' assuming `forIn` logs 'a', 'b', then 'c'.
|
||||
*/
|
||||
function forInRight(object, iteratee) {
|
||||
return object == null ? object : baseForRight(object, iteratee, keysIn);
|
||||
|
||||
Reference in New Issue
Block a user