Urara-Blog/node_modules/.pnpm-store/v3/files/31/8eca1b2ece6b2b5a97966d645b0a6898f8cbb499c7ee67d70ed19ac5df6cd8c6b0b0d1f8b74da92bf6c06cf80c2d9c1d741e5511f0b1052e388fb4e58106c7
2022-08-14 01:14:53 +08:00

18 lines
612 B
Text

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
nativeMin = Math.min;
/**
* The base implementation of `_.inRange` which doesn't coerce arguments.
*
* @private
* @param {number} number The number to check.
* @param {number} start The start of the range.
* @param {number} end The end of the range.
* @returns {boolean} Returns `true` if `number` is in the range, else `false`.
*/
function baseInRange(number, start, end) {
return number >= nativeMin(start, end) && number < nativeMax(start, end);
}
module.exports = baseInRange;