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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends TriageEntry |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entries |
readonly T[] |
book |
SnoozeBook |
now |
Date |
Returns
Section titled “Returns”object
asleep
Section titled “asleep”asleep:
T[]
awake:
T[]
book:
SnoozeBook