Ensure _.inRange swaps start with end when start is greater than end. [closes #1099]

This commit is contained in:
jdalton
2015-04-01 08:43:42 -07:00
parent 97bd1ef4ec
commit 4758a9e66d
2 changed files with 6 additions and 1 deletions

View File

@@ -10110,7 +10110,7 @@
} else {
end = +end || 0;
}
return value >= start && value < end;
return value >= nativeMin(start, end) && value < nativeMax(start, end);
}
/**