Identifies the element type of the iterator
A synchronous function that accepts up to three arguments. iterForOf calls the
callbackfn function one time for each element returned by the iterator.
OptionalthisArg: anyAn object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, null or undefined the iterator will be used as the this value.
If Symbols are NOT supported then the iterable MUST be using the same polyFill for the well know symbols, if you are targetting a mixed environment you SHOULD either
synchronous function.
iterForOf does not wait for promises. Make sure you are aware of the implications while using
promises (or async functions) as forEach callback.
Calls the provided
callbackFnfunction once for each element in the iterator or iterator returned by the iterable and processed in the same order as returned by the iterator. As with the arrForEach you CAN stop / break the iteration by returning -1 from thecallbackFnfunction.The order of processing is not reset if you add or remove elements to the iterator, the actual behavior will depend on the iterator imeplementation.
If the passed and Iterator the Iterator interface takes preceedence.
iteris both an Iterable