mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Further simplify _.forEach.
Former-commit-id: 0d6363219836706c411473187dbf6b5516f8574a
This commit is contained in:
@@ -621,10 +621,7 @@
|
|||||||
* // => alerts each number in turn...
|
* // => alerts each number in turn...
|
||||||
*/
|
*/
|
||||||
var forEach = createIterator(baseIteratorOptions, {
|
var forEach = createIterator(baseIteratorOptions, {
|
||||||
'top':
|
'top': 'if (thisArg) callback = bind(callback, thisArg)'
|
||||||
'if (callback && thisArg) {\n' +
|
|
||||||
' callback = bind(callback, thisArg)\n' +
|
|
||||||
'}'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user