1 /* Native method references for those with the same name as other `lodash` methods. */
2 var nativeMax = Math.max,
6 * Checks if `n` is between `start` and up to but not including, `end`. If
7 * `end` is not specified it's set to `start` with `start` then set to `0`.
12 * @param {number} n The number to check.
13 * @param {number} [start=0] The start of the range.
14 * @param {number} end The end of the range.
15 * @returns {boolean} Returns `true` if `n` is in the range, else `false`.
36 function inRange(value, start, end) {
38 if (end === undefined) {
44 return value >= nativeMin(start, end) && value < nativeMax(start, end);
47 module.exports = inRange;