five-on-it / apps/server/src/debug-runs / keepLast
Function: keepLast()
keepLast<
K,V>(map,key,value,limit):void
Defined in: apps/server/src/debug-runs.ts:48
Keeps a value under its key among the last limit kept (a key kept again counts as the newest), the oldest forgotten first: a server's memory is not the tests' archive.
Type Parameters
K
K
V
V
Parameters
map
Map<K, V>
key
K
value
V
limit
number
Returns
void