MCPcopy
hub / github.com/webpack/webpack / forEach

Method forEach

lib/util/LazySet.js:195–200  ·  view source on GitHub ↗

* Iterates over every item after forcing pending merges and switching to * eager mode for correctness during iteration. * @template K * @param {(value: T, value2: T, set: Set<T>) => void} callbackFn function called for each entry * @param {K} thisArg this argument for the callbackFn * @ret

(callbackFn, thisArg)

Source from the content-addressed store, hash-verified

193 * @returns {void}
194 */
195 forEach(callbackFn, thisArg) {
196 this._deopt = true;
197 if (this._needMerge) this._merge();
198 // eslint-disable-next-line unicorn/no-array-for-each, unicorn/no-array-method-this-argument
199 this._set.forEach(callbackFn, thisArg);
200 }
201
202 /**
203 * Checks whether an item is present after applying any deferred merges.

Callers 15

updateEventSourceFunction · 0.45
createModuleHotObjectFunction · 0.45
internalApplyFunction · 0.45
onAcceptedFunction · 0.45
applyInvalidatedModulesFunction · 0.45
applyHandlerFunction · 0.45
expectAOnlyFunction · 0.45
loader.jsFile · 0.45
index.jsFile · 0.45
index.cjsFile · 0.45

Calls 1

_mergeMethod · 0.95

Tested by

no test coverage detected