* @returns a boolean indicating whether all the elements in the argument are also in this Set.
(other: ReadonlySet<unknown>)
| 230 | * @returns a boolean indicating whether all the elements in the argument are also in this Set. |
| 231 | */ |
| 232 | public isSupersetOf(other: ReadonlySet<unknown>): boolean { |
| 233 | for (const item of other) { |
| 234 | if (!this.has(item as T)) { |
| 235 | return false; |
| 236 | } |
| 237 | } |
| 238 | return true; |
| 239 | } |
| 240 | |
| 241 | /** |
| 242 | * @returns a boolean indicating whether this Set has no elements in common with the argument. |