(targetRank: RankLike, direction: SortDirection)
| 295 | } |
| 296 | |
| 297 | function rankBeforeInDisplay(targetRank: RankLike, direction: SortDirection): RankLike { |
| 298 | return direction === "asc" ? safeGenPrev(targetRank) : safeGenNext(targetRank); |
| 299 | } |
| 300 | |
| 301 | function rankAfterInDisplay(targetRank: RankLike, direction: SortDirection): RankLike { |
| 302 | return direction === "asc" ? safeGenNext(targetRank) : safeGenPrev(targetRank); |
no test coverage detected