MCPcopy
hub / github.com/webpack/webpack / has

Method has

lib/util/LazySet.js:207–210  ·  lib/util/LazySet.js::LazySet.has

* Checks whether an item is present after applying any deferred merges. * @param {T} item an item * @returns {boolean} true, when the item is in the Set

(item)

Source from the content-addressed store, hash-verified

205 * @returns {boolean} true, when the item is in the Set
206 */
207 has(item) {
208 if (this._needMerge) this._merge();
209 return this._set.has(item);
210 }
211
212 /**
213 * Returns the key iterator, eagerly materializing pending merges first.

Callers 15

stringifyObjFunction · 0.45
applyDefineKeyMethod · 0.45
addToMapMethod · 0.45
updateParentMethod · 0.45
usesFullHashFunction · 0.45
applyMethod · 0.45
dependOnMethod · 0.45
isDependencyFulfilledMethod · 0.45
optimizeMethod · 0.45
_logMethod · 0.45
resolveDirectoryMethod · 0.45

Calls 1

_mergeMethod · 0.95

Tested by 3

cleanErrorFunction · 0.36
callbackFunction · 0.36
watchFunction · 0.36