UNPKG

@n3okill/utils

Version:
14 lines 491 B
"use strict"; 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