source: trip-planner-front/node_modules/lodash/_baseInRange.js@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 612 bytes
Line 
1/* Built-in method references for those with the same name as other `lodash` methods. */
2var 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 */
14function baseInRange(number, start, end) {
15 return number >= nativeMin(start, end) && number < nativeMax(start, end);
16}
17
18module.exports = baseInRange;
Note: See TracBrowser for help on using the repository browser.