|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Checks if the value is less than the maximum.
|
|---|
| 3 | *
|
|---|
| 4 | * @param {number} value The value to check.
|
|---|
| 5 | * @param {number} maximum The upper bound of the range (exclusive).
|
|---|
| 6 | * @returns {boolean} `true` if the value is less than the maximum, otherwise `false`.
|
|---|
| 7 | *
|
|---|
| 8 | * @example
|
|---|
| 9 | * const result = inRange(3, 5); // result will be true.
|
|---|
| 10 | * const result2 = inRange(5, 5); // result2 will be false.
|
|---|
| 11 | */
|
|---|
| 12 | declare function inRange(value: number, maximum: number): boolean;
|
|---|
| 13 | /**
|
|---|
| 14 | * Checks if the value is within the range defined by minimum (inclusive) and maximum (exclusive).
|
|---|
| 15 | *
|
|---|
| 16 | * @param {number} value The value to check.
|
|---|
| 17 | * @param {number} minimum The lower bound of the range (inclusive).
|
|---|
| 18 | * @param {number} maximum The upper bound of the range (exclusive).
|
|---|
| 19 | * @returns {boolean} `true` if the value is within the specified range, otherwise `false`.
|
|---|
| 20 | *
|
|---|
| 21 | * @example
|
|---|
| 22 | * const result = inRange(3, 2, 5); // result will be true.
|
|---|
| 23 | * const result2 = inRange(1, 2, 5); // result2 will be false.
|
|---|
| 24 | */
|
|---|
| 25 | declare function inRange(value: number, minimum: number, maximum: number): boolean;
|
|---|
| 26 |
|
|---|
| 27 | export { inRange };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.