From 793332beb835836ade9ca2b8966cc12aeeb04c9c Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 15 May 2012 01:53:17 -0400 Subject: [PATCH] Further simplify `_.forEach`. Former-commit-id: 0d6363219836706c411473187dbf6b5516f8574a --- lodash.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lodash.js b/lodash.js index e77376aaf..f29d58873 100644 --- a/lodash.js +++ b/lodash.js @@ -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)' }); /**