OptionalthisArg: anyTypeError when the value's [Symbol.iterator] isn't null, undefined or a function, when its
[Symbol.iterator]() doesn't return an iterator, or the iterator's next() returns a value which is not an object,
or (like for...of) when it stops early and the iterator's return() doesn't return an object
Tests whether at least one value in the iterator / iterable matches the predicate. The value is processed like
for...of(and iterForOf), so an iterable (including a string or an array) is processed using its iterator (a string by its code points on a runtime which supportsSymbol.iterator) and an iterator which is not iterable is used as-is. Unlikefor...of(and iterForOf, which only also processes an array) any other array-like which is not iterable (eg.{ length: 2, 0: "a", 1: "b" }, orargumentsor a string on a runtime withoutSymbol.iterator) is processed using its indexes, and aMaporSetwhich is not iterable (eg. on IE 11) using a copy of its[key, value]entries / values.