* Iterates over every item after forcing pending merges and switching to * eager mode for correctness during iteration. * @template K * @param {(value: T, value2: T, set: Set<T>) => void} callbackFn function called for each entry * @param {K} thisArg this argument for the callbackFn * @ret
(callbackFn, thisArg)
| 193 | * @returns {void} |
| 194 | */ |
| 195 | forEach(callbackFn, thisArg) { |
| 196 | this._deopt = true; |
| 197 | if (this._needMerge) this._merge(); |
| 198 | // eslint-disable-next-line unicorn/no-array-for-each, unicorn/no-array-method-this-argument |
| 199 | this._set.forEach(callbackFn, thisArg); |
| 200 | } |
| 201 | |
| 202 | /** |
| 203 | * Checks whether an item is present after applying any deferred merges. |
no test coverage detected