const someIterable = new Set([1,2,3,4]);for (const { value, isLast } of withContext(someIterable)) { console.log(value, isLast); // [LOG]: 1, false // [LOG]: 2, false // [LOG]: 3, false // [LOG]: 4, true}
Generated using TypeDoc
Example