UNPKG

ts-jsdk

Version:

TypeScript implementation of the Java platform

26 lines 499 B
export class HashSet { constructor() { this._set = new Set(); } [Symbol.iterator]() { return this._set[Symbol.iterator](); } isEmpty() { return this._set.size <= 0; } add(item) { this._set.add(item); } size() { return this._set.size; } values() { return this._set.values(); } addAll(set) { for (const s of set) { this.add(s); } } } //# sourceMappingURL=HashSet.js.map