Simplify resolving start in _.range.

This commit is contained in:
John-David Dalton
2015-10-22 17:08:22 -07:00
parent 91fcf837f7
commit f54cfb0ea2

View File

@@ -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;