@n3okill/utils
Version:
Many javascript helpers
14 lines • 491 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.equalSet = equalSet;
const equalArray_1 = require("./equalArray");
/**
* Given two sets, return true if they contain the same elements.
* @param {T} a - The first set.
* @param {U} b - U is the type of the second set.
* @returns The result of the equality check.
*/
function equalSet(a, b) {
return (0, equalArray_1.equalArray)(Array.from(a), Array.from(b));
}
//# sourceMappingURL=equalSet.js.map
;