Further simplify _.forEach.

Former-commit-id: 0d6363219836706c411473187dbf6b5516f8574a
This commit is contained in:
John-David Dalton
2012-05-15 01:53:17 -04:00
parent 4e9688cc18
commit 793332beb8

View File

@@ -621,10 +621,7 @@
* // => alerts each number in turn...
*/
var forEach = createIterator(baseIteratorOptions, {
'top':
'if (callback && thisArg) {\n' +
' callback = bind(callback, thisArg)\n' +
'}'
'top': 'if (thisArg) callback = bind(callback, thisArg)'
});
/**