Skip to content

sortSnoozed

sortSnoozed<T>(entries, book, now): object

Splits a run’s entries into those showing and those still asleep: a snooze holds while its time isn’t up and the item is what it was. The book comes back holding only what’s still asleep, so it never grows.

Type Parameter
T extends TriageEntry
Parameter Type
entries readonly T[]
book SnoozeBook
now Date

object

asleep: T[]

awake: T[]

book: SnoozeBook