Skip to content

Commit

Permalink
Update series.ts function doc to be more specific (#330)
Browse files Browse the repository at this point in the history
chore: adjust comment for min and max, make it meaningful.
  • Loading branch information
metasong authored Feb 21, 2024
1 parent b41291b commit 241e6f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ export const series = <T>(
)
/**
* Given two values in the series, returns the
* value that occurs later in the series
* value that occurs earlier in the series
*/
const min = (a: T, b: T): T => {
return indexesByKey[toKey(a)] < indexesByKey[toKey(b)] ? a : b
}
/**
* Given two values in the series, returns the
* value that occurs earlier in the series
* value that occurs later in the series
*/
const max = (a: T, b: T): T => {
return indexesByKey[toKey(a)] > indexesByKey[toKey(b)] ? a : b
Expand Down

0 comments on commit 241e6f8

Please sign in to comment.