* Checks if two sets contain the same elements. * * @param {Set. } setA * @param {Set. } setB * @returns {boolean} whether or not the sets contain the same elements.
(setA, setB)
| 449 | * @returns {boolean} whether or not the sets contain the same elements. |
| 450 | */ |
| 451 | function checkSetsSame(setA, setB) { |
| 452 | const union = setUnion(setA, setB); |
| 453 | return setA.size === setB.size && union.size === setA.size; |
| 454 | } |
| 455 | |
| 456 | /** |
| 457 | * Asserts that two snapshots match each other. Two snapshots are defined as |