MCPcopy
hub / github.com/webpack/webpack / delete

Method delete

lib/util/WeakTupleMap.js:161–169  ·  view source on GitHub ↗

* Removes the value stored for the tuple key without pruning the trie. * @param {K} args tuple * @returns {void}

(...args)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

_peekMethod · 0.80
_deleteValueMethod · 0.80

Tested by

no test coverage detected