We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55ce5bd commit 71a5626Copy full SHA for 71a5626
new-log-viewer/src/utils/data.ts
@@ -4,9 +4,9 @@ import {Nullable} from "../typings/common";
4
/**
5
* Checks if 'x' is bounded by the first and last value in a sorted array of numbers.
6
*
7
- * @param data Sorted array.
+ * @param data A number array sorted in ascending order.
8
* @param x Target value.
9
- * @return True if is `x` is within bounds and false if outside of bounds or array is empty.
+ * @return `true` if is `x` is within bounds; `false` otherwise or when the array is empty.
10
*/
11
const isWithinBounds = (data: number[], x: number): boolean => {
12
const {length} = data;
0 commit comments