MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / setUnion

Function setUnion

tests/sync/util.js:440–442  ·  view source on GitHub ↗

* Computes setA U setB. * * @template T * @param {Set. } setA * @param {Set. }setB * @returns {Set. } The union of setA and setB

(setA, setB)

Source from the content-addressed store, hash-verified

438 * @returns {Set.<T>} The union of setA and setB
439 */
440function setUnion(setA, setB) {
441 return new Set([...setA, ...setB]);
442}
443
444/**
445 * Checks if two sets contain the same elements.

Callers 1

checkSetsSameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected