From 1df780abba7d05ed081291114a27080e630087e4 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 5 Jan 2016 08:11:02 -0800 Subject: [PATCH] Add comment to `createRange` to avoid refactoring the way `start` is resolved. [ci skip] --- lodash.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lodash.js b/lodash.js index 7319ea009..01c28ddc5 100644 --- a/lodash.js +++ b/lodash.js @@ -4320,6 +4320,7 @@ if (step && typeof step != 'number' && isIterateeCall(start, end, step)) { end = step = undefined; } + // Ensure the sign of `-0` is preserved. start = toNumber(start); start = start === start ? start : 0; if (end === undefined) {