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

Method delete

lib/util/StackedMap.js:78–84  ·  view source on GitHub ↗

* Deletes a key from the current view, either by removing it outright in the * root layer or by recording a tombstone in child layers. * @param {K} item the item to delete * @returns {void}

(item)

Source from the content-addressed store, hash-verified

76 * @returns {void}
77 */
78 delete(item) {
79 if (this.stack.length > 1) {
80 this.map.set(item, TOMBSTONE);
81 } else {
82 this.map.delete(item);
83 }
84 }
85
86 /**
87 * Checks whether a key exists in the current scope chain, caching any parent

Callers 1

_compressMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected