Skeudenn / lib/home-favorites / pickRandomFavorites
Function: pickRandomFavorites() ​
pickRandomFavorites(
entries,count?,random?):LibraryEntry[]
Defined in: src/lib/home-favorites.ts:34
A random selection of favorites: count books drawn among those rated FAVORITE_MIN_RATING or more, best rated first. When fewer books are that well rated, the count best-rated ones (see topRated) are the pool.
Parameters ​
entries ​
readonly LibraryEntry[]
count? ​
number = FAVORITES_COUNT
random? ​
() => number