Skip to content

Latest commit

 

History

History

skip-iterator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

⏭️ SkipIterator

#iterator #skip #typescript

Open in StackBlitz

Iterator class, implementing value skipping


const myIter = new SkipIterator([1,3,4,3,5])
myIter.next() // 1
myIter.skip(3)
myIter.skip(3)
myIter.next() // 4
myIter.next() // 5