Skip to content

Commit 71a5626

Browse files
Apply suggestions from code review
Co-authored-by: Junhao Liao <[email protected]>
1 parent 55ce5bd commit 71a5626

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

new-log-viewer/src/utils/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import {Nullable} from "../typings/common";
44
/**
55
* Checks if 'x' is bounded by the first and last value in a sorted array of numbers.
66
*
7-
* @param data Sorted array.
7+
* @param data A number array sorted in ascending order.
88
* @param x Target value.
9-
* @return True if is `x` is within bounds and false if outside of bounds or array is empty.
9+
* @return `true` if is `x` is within bounds; `false` otherwise or when the array is empty.
1010
*/
1111
const isWithinBounds = (data: number[], x: number): boolean => {
1212
const {length} = data;

0 commit comments

Comments
 (0)