* Removes the value stored for the tuple key without pruning the trie. * @param {K} args tuple * @returns {void}
(...args)
| 159 | * @returns {void} |
| 160 | */ |
| 161 | delete(...args) { |
| 162 | /** @type {WeakTupleMap<K, V> | undefined} */ |
| 163 | let node = this; |
| 164 | for (let i = 0; i < args.length; i++) { |
| 165 | node = node._peek(/** @type {ArrayElement<K>} */ (args[i])); |
| 166 | if (node === undefined) return; |
| 167 | } |
| 168 | node._deleteValue(); |
| 169 | } |
| 170 | |
| 171 | /** |
| 172 | * Clears the stored value and all strong and weak child maps from this node. |
nothing calls this directly
no test coverage detected