mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Bump to v4.4.0.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import arrayEachRight from './_arrayEachRight';
|
||||
import baseCastFunction from './_baseCastFunction';
|
||||
import baseEachRight from './_baseEachRight';
|
||||
import isArray from './isArray';
|
||||
import toFunction from './_toFunction';
|
||||
|
||||
/**
|
||||
* This method is like `_.forEach` except that it iterates over elements of
|
||||
@@ -24,7 +24,7 @@ import toFunction from './_toFunction';
|
||||
function forEachRight(collection, iteratee) {
|
||||
return (typeof iteratee == 'function' && isArray(collection))
|
||||
? arrayEachRight(collection, iteratee)
|
||||
: baseEachRight(collection, toFunction(iteratee));
|
||||
: baseEachRight(collection, baseCastFunction(iteratee));
|
||||
}
|
||||
|
||||
export default forEachRight;
|
||||
|
||||
Reference in New Issue
Block a user