Skip to content

Tankōbon / lib/recent-books / recentlyAdded

Function: recentlyAdded() ​

recentlyAdded(entries, count?): LibraryEntry[]

Defined in: lib/recent-books.ts:14

The count most recently added entries, newest first (ties keep the given order), as a new array. addedAt is an ISO timestamp, so it compares as a string.

Parameters ​

entries ​

readonly LibraryEntry[]

count? ​

number = RECENT_BOOKS_COUNT

Returns ​

LibraryEntry[]