MCPcopy
hub / github.com/webpack/webpack / merge

Function merge

lib/util/LazySet.js:17–23  ·  view source on GitHub ↗
(targetSet, toMerge)

Source from the content-addressed store, hash-verified

15 * @returns {void}
16 */
17const merge = (targetSet, toMerge) => {
18 for (const set of toMerge) {
19 for (const item of set) {
20 targetSet.add(item);
21 }
22 }
23};
24
25/**
26 * Flattens nested `LazySet` instances into a single collection of iterables

Callers 1

_mergeMethod · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected