(input: Iterable<T>, limit: number)
| 235 | } |
| 236 | |
| 237 | function recent<T>(input: Iterable<T>, limit: number) { |
| 238 | const list = [...input] |
| 239 | return list.slice(Math.max(0, list.length - limit)) |
| 240 | } |
| 241 | |
| 242 | function copyMap<K, V>(source: Map<K, V>, keep: Set<K>) { |
| 243 | const out = new Map<K, V>() |
no outgoing calls
no test coverage detected