main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
610 bytes
|
Line | |
---|
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 | export default baseInRange;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.