* Returns a comma-separated string of all set values. * @returns String representation of the set * @complexity Time O(n) | Space O(n)
()
| 179 | * @complexity Time O(n) | Space O(n) |
| 180 | */ |
| 181 | toString(): string { |
| 182 | return this.values().join(', '); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | export default MySet; |