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.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
keys |
readonly string[] |
undefined |
memory |
NewsMemory | undefined |
undefined |
limit |
number |
300 |
Returns
Section titled “Returns”object
fresh:
string[]
memory
Section titled “memory”memory:
NewsMemory