TLDR Web Dev · QUICK LINKS

USING TYPESCRIPT GENERATORS

blog.logrocket.com4 min read

Summary from the TLDR Web Dev newsletter

Normal functions run from top to bottom and then exit. Generator functions also run from top to bottom, but they can be paused during execution and resume later from the same point. This article will teach you how to use generator functions in TypeScript and cover a few different examples and use cases.