Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Junhao Liao <[email protected]>
  • Loading branch information
davemarco and junhaoliao authored Oct 2, 2024
1 parent 55ce5bd commit 71a5626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions new-log-viewer/src/utils/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {Nullable} from "../typings/common";
/**
* Checks if 'x' is bounded by the first and last value in a sorted array of numbers.
*
* @param data Sorted array.
* @param data A number array sorted in ascending order.
* @param x Target value.
* @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.
*/
const isWithinBounds = (data: number[], x: number): boolean => {
const {length} = data;
Expand Down

0 comments on commit 71a5626

Please sign in to comment.