Reference for stage 2.7 iterator-includes#44226
Conversation
|
|
||
| ## See also | ||
|
|
||
| - [es-shims polyfill of `Iterator.prototype.includes`](https://www.npmjs.com/package/es-iterator-helpers) |
There was a problem hiding this comment.
@Josh-Cena now it's in v4 branch, I'll backport it in some days.
Preview URLs (6 pages)
External URLs (1)URL:
(comment last updated: 2026-05-27 23:01:18) |
| --- | ||
|
|
||
| The **`includes()`** method of {{jsxref("Iterator")}} instances is similar to {{jsxref("Array.prototype.includes()")}}: it returns `true` if it finds an element that is strictly equal to the given value. Otherwise, if the iterator is exhausted without finding such an element, it returns `false`. | ||
|
|
There was a problem hiding this comment.
FMI, we're not doing interactive examples in JS any more?
There was a problem hiding this comment.
We are, I'm just lazy and we don't have these for other Iterator pages 🤷♂️
There was a problem hiding this comment.
Your call. I don't think "lazy" is a term that can be applied to you.
hamishwillee
left a comment
There was a problem hiding this comment.
Thanks very much @Josh-Cena - the fixes work for me.
|
@Josh-Cena There is a failing check-redirects. I have not checked this - approved but not merged. |
Part of #44158
Proposal https://github.com/tc39/proposal-iterator-includes