* Checks whether an item is present after applying any deferred merges. * @param {T} item an item * @returns {boolean} true, when the item is in the Set
(item)
| 205 | * @returns {boolean} true, when the item is in the Set |
| 206 | */ |
| 207 | has(item) { |
| 208 | if (this._needMerge) this._merge(); |
| 209 | return this._set.has(item); |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Returns the key iterator, eagerly materializing pending merges first. |