From f54cfb0ea2ca9a98214d7c27b47966d87f923d7c Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 22 Oct 2015 17:08:22 -0700 Subject: [PATCH] Simplify resolving `start` in `_.range`. --- lodash.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index 7ed91eaff..6b6ccd5d6 100644 --- a/lodash.js +++ b/lodash.js @@ -12468,11 +12468,9 @@ end = step = undefined; } start = +start; + start = start === start ? start : 0; step = step === undefined ? 1 : (+step || 0); - if (start !== start) { - start = 0; - } if (end === undefined) { end = start; start = 0;