1 | /* Built-in method references for those with the same name as other `lodash` methods. */
|
2 | var nativeMax = Math.max,
|
3 | nativeMin = Math.min;
|
4 |
|
5 | /**
|
6 | * The base implementation of `_.inRange` which doesn't coerce arguments.
|
7 | *
|
8 | * @private
|
9 | * @param {number} number The number to check.
|
10 | * @param {number} start The start of the range.
|
11 | * @param {number} end The end of the range.
|
12 | * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
|
13 | */
|
14 | function baseInRange(number, start, end) {
|
15 | return number >= nativeMin(start, end) && number < nativeMax(start, end);
|
16 | }
|
17 |
|
18 | module.exports = baseInRange;
|