mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Simplify resolving start in _.range.
This commit is contained in:
@@ -12468,11 +12468,9 @@
|
|||||||
end = step = undefined;
|
end = step = undefined;
|
||||||
}
|
}
|
||||||
start = +start;
|
start = +start;
|
||||||
|
start = start === start ? start : 0;
|
||||||
step = step === undefined ? 1 : (+step || 0);
|
step = step === undefined ? 1 : (+step || 0);
|
||||||
|
|
||||||
if (start !== start) {
|
|
||||||
start = 0;
|
|
||||||
}
|
|
||||||
if (end === undefined) {
|
if (end === undefined) {
|
||||||
end = start;
|
end = start;
|
||||||
start = 0;
|
start = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user