From cc2e434f3d4e4235052620310affafdeeae6be3f Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 29 Mar 2014 13:33:50 -0700 Subject: [PATCH] Avoid unnecessarily coercing `start` to a number. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index c51f4da3f..5b2456fab 100644 --- a/lodash.js +++ b/lodash.js @@ -3003,7 +3003,7 @@ var index = -1, length = array ? array.length : 0; - start = +start || 0; + start = typeof start == 'undefined' ? 0 : (+start || 0); if (start < 0) { start = nativeMax(length + start, 0); } else if (start > length) {