MCPcopy
hub / github.com/webpack/webpack / addAllToSet

Function addAllToSet

lib/hmr/JavascriptHotModuleReplacement.runtime.js:200–205  ·  view source on GitHub ↗

* @param {ModuleId[]} a target set * @param {ModuleId[]} b items to add * @returns {void}

(a, b)

Source from the content-addressed store, hash-verified

198 * @returns {void}
199 */
200 function addAllToSet(a, b) {
201 for (var i = 0; i < b.length; i++) {
202 var item = b[i];
203 if (a.indexOf(item) === -1) a.push(item);
204 }
205 }
206
207 // at begin all updates modules are outdated
208 // the "outdated" status can propagate to parents if they don't accept the children

Callers 2

getAffectedModuleEffectsFunction · 0.70
applyHandlerFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected