Skip to content

Tankōbon / lib/home-favorites / topRated

Function: topRated() ​

topRated(entries, count?): LibraryEntry[]

Defined in: lib/home-favorites.ts:15

The best-rated books to rediscover: rated entries only, highest rating first, and among equal ratings the one opened longest ago first (a favorite read recently needs no reminder). Remaining ties go to the title, so the choice is stable.

Parameters ​

entries ​

readonly LibraryEntry[]

count? ​

number = FAVORITES_COUNT

Returns ​

LibraryEntry[]