Skip to content

Tankōbon / lib/reading-list / nextToRead

Function: nextToRead() ​

nextToRead(entries, excludeId?): LibraryEntry | null

Defined in: lib/reading-list.ts:68

The book to read next: the first unfinished one, in list order. excludeId skips a book, the one just finished in the reader, whose progress may not be saved yet. Null when all are read.

Parameters ​

entries ​

LibraryEntry[]

excludeId? ​

string

Returns ​

LibraryEntry | null