UNPKG

earljs

Version:

Ergonomic, modern and type-safe assertion library

16 lines (15 loc) 365 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isEqualSet = void 0; function isEqualSet(value, other) { if (value.size !== other.size) { return false; } for (const item of other) { if (!value.has(item)) { return false; } } return true; } exports.isEqualSet = isEqualSet;