The includes() method of an Iterator object returns true when an item yielded by the iterator is the same as a given value. It's similar to the includes() method of arrays. Shipping in Safari 27.3 (beta). Probes Iterator.includes. More: developer.mozilla.org/docs/Web/JavaScript/Referenc… tc39.es/proposal-iterator-includes/#sec-iterator.p… web-platform-dx.github.io/web-features-explorer/fe…
typeof Iterator !== "undefined" && ("includes" in Iterator || (Iterator.prototype && "includes" in Iterator.prototype))typeof Iterator !== "undefined" && ("includes" in Iterator || (Iterator.prototype && "includes" in Iterator.prototype))