* Returns true if the set contains the given value. * @param value - The value to check * @returns Whether the value is in the set * @complexity Time O(1) | Space O(1)
(value: string)
| 48 | * @complexity Time O(1) | Space O(1) |
| 49 | */ |
| 50 | has(value: string): boolean { |
| 51 | return Object.prototype.hasOwnProperty.call(this.#items, value); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Returns an array of all values in the set. |
no outgoing calls
no test coverage detected