UNPKG

@n3okill/utils

Version:
11 lines 371 B
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