(key, value)
| 7 | this._map = new Map(); |
| 8 | } |
| 9 | put(key, value) { |
| 10 | const arr = this._map.get(key); |
| 11 | if (arr) { |
| 12 | arr.push(value); |
| 13 | } else { |
| 14 | this._map.set(key, [value]); |
| 15 | } |
| 16 | } |
| 17 | get(key) { |
| 18 | return this._map.get(key) || []; |
| 19 | } |
no test coverage detected