Skip to content

news

news(keys, memory, limit?): object

The keys among keys not seen before, and the memory to keep (the most recent limit). Without memory (the first look) nothing is new. A key that’s new keeps its place: pass keys that change when the thing does (id@updatedAt) to hear of changes.

Parameter Type Default value
keys readonly string[] undefined
memory NewsMemory | undefined undefined
limit number 300

object

fresh: string[]

memory: NewsMemory