mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Ensure _.inRange swaps start with end when start is greater than end. [closes #1099]
This commit is contained in:
@@ -10110,7 +10110,7 @@
|
||||
} else {
|
||||
end = +end || 0;
|
||||
}
|
||||
return value >= start && value < end;
|
||||
return value >= nativeMin(start, end) && value < nativeMax(start, end);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user