const iterable = [...(new Array(1000))].map((_,i) => i) const iterator = iterable.values()
Initializing...
iterable.map(x => x * 2).filter(x => x < -1).reduce((a,b) => a+b, 0)
iterator.map(x => x * 2).filter(x => x < -1).reduce((a,b) => a+b, 0)
You can edit these tests or add more tests to this page by appending /edit to the URL.