mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Add comment to createRange to avoid refactoring the way start is resolved. [ci skip]
This commit is contained in:
@@ -4320,6 +4320,7 @@
|
|||||||
if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
|
if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
|
||||||
end = step = undefined;
|
end = step = undefined;
|
||||||
}
|
}
|
||||||
|
// Ensure the sign of `-0` is preserved.
|
||||||
start = toNumber(start);
|
start = toNumber(start);
|
||||||
start = start === start ? start : 0;
|
start = start === start ? start : 0;
|
||||||
if (end === undefined) {
|
if (end === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user