UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

23 lines 522 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setIsSetEqual = void 0; /** * @public * Tests to see if all of the members of a set are the same. * * @remarks * See {@link setIsSetEqual}. */ function setIsSetEqual(a, b) { if (a.size !== b.size) { return false; } for (const item of a) { if (!b.has(item)) { return false; } } return true; } exports.setIsSetEqual = setIsSetEqual; //# sourceMappingURL=set-is-set-equal.js.map