(
private defaultValue: () => V,
entries?: Iterable<[K, V]>,
)
| 16 | */ |
| 17 | export class DefaultMap<K, V> extends Map<K, V> { |
| 18 | constructor( |
| 19 | private defaultValue: () => V, |
| 20 | entries?: Iterable<[K, V]>, |
| 21 | ) { |
| 22 | super(entries) |
| 23 | } |
| 24 | |
| 25 | get(key: K): V { |
| 26 | if (!this.has(key)) { |
nothing calls this directly
no outgoing calls
no test coverage detected