untitled notebook

node v18.11.0
version: master
endpointsharetweet
//Simplest example of a custom iterator function myIterator(){ let a = 0; return { next: function(){return a++} } } let it = myIterator(); console.log(it.next()); console.log(it.next()); console.log(it.next());
Loading…

no comments

    sign in to comment