mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Bump to v3.3.1.
This commit is contained in:
committed by
John-David Dalton
parent
343b869a68
commit
0423d77228
@@ -1,15 +1,19 @@
|
||||
/**
|
||||
* lodash 3.3.0 (Custom Build) <https://lodash.com/>
|
||||
* lodash 3.3.1 (Custom Build) <https://lodash.com/>
|
||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Available under MIT license <https://lodash.com/license>
|
||||
*/
|
||||
|
||||
/* 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 defaults to `start` with `start` becoming `0`.
|
||||
* `end` is not specified it is set to `start` with `start` then set to `0`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -46,7 +50,7 @@ function inRange(value, start, end) {
|
||||
} else {
|
||||
end = +end || 0;
|
||||
}
|
||||
return value >= start && value < end;
|
||||
return value >= nativeMin(start, end) && value < nativeMax(start, end);
|
||||
}
|
||||
|
||||
module.exports = inRange;
|
||||
|
||||
Reference in New Issue
Block a user