@n3okill/utils
Version:
Many javascript helpers
11 lines • 371 B
JavaScript
import { equalArray } from "./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.
*/
export function equalSet(a, b) {
return equalArray(Array.from(a), Array.from(b));
}
//# sourceMappingURL=equalSet.js.map