MCPcopy
hub / github.com/webpack/webpack / isOverlap

Function isOverlap

lib/optimize/SplitChunksPlugin.js:257–262  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

255 * @returns {boolean} true if at least one item of a is in b
256 */
257const isOverlap = (a, b) => {
258 for (const item of a) {
259 if (b.has(item)) return true;
260 }
261 return false;
262};
263
264const compareModuleIterables = compareIterables(compareModulesByIdentifier);
265

Callers 1

applyMethod · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected