8eca1b2ece6b2b5a97966d645b0a6898f8cbb499c7ee67d70ed19ac5df6cd8c6b0b0d1f8b74da92bf6c06cf80c2d9c1d741e5511f0b1052e388fb4e58106c7 612 B

123456789101112131415161718
  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. * The base implementation of `_.inRange` which doesn't coerce arguments.
  6. *
  7. * @private
  8. * @param {number} number The number to check.
  9. * @param {number} start The start of the range.
  10. * @param {number} end The end of the range.
  11. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  12. */
  13. function baseInRange(number, start, end) {
  14. return number >= nativeMin(start, end) && number < nativeMax(start, end);
  15. }
  16. module.exports = baseInRange;