* Returns true if the set has no elements. * @returns Whether the set is empty * @complexity Time O(1) | Space O(1)
()
| 89 | * @complexity Time O(1) | Space O(1) |
| 90 | */ |
| 91 | isEmpty(): boolean { |
| 92 | return this.#size === 0; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Removes all elements from the set. |
no outgoing calls
no test coverage detected