(key: string)
| 59 | } |
| 60 | } |
| 61 | delete(key: string) { |
| 62 | const value = this.value(key); |
| 63 | this.keyToValue.delete(key); |
| 64 | if (value) { |
| 65 | for (const val of value) { |
| 66 | this.valueToKey.delete(val); |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | key(value: string) { |
| 71 | return this.valueToKey.get(value); |
| 72 | } |
no test coverage detected