mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Bump to v3.7.0.
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
define([], function() {
|
||||
|
||||
/* Native method references for those with the same name as other `lodash` methods. */
|
||||
var nativeMax = Math.max,
|
||||
nativeMin = Math.min;
|
||||
|
||||
/**
|
||||
* Checks if `n` is between `start` and up to but not including, `end`. If
|
||||
* `end` is not specified it is set to `start` with `start` then set to `0`.
|
||||
@@ -39,7 +43,7 @@ define([], function() {
|
||||
} else {
|
||||
end = +end || 0;
|
||||
}
|
||||
return value >= start && value < end;
|
||||
return value >= nativeMin(start, end) && value < nativeMax(start, end);
|
||||
}
|
||||
|
||||
return inRange;
|
||||
|
||||
Reference in New Issue
Block a user