Generator functions in JavaScript
Originally posted here!
Generators in JavaScript are a special type of function which returns a value when asked and then pauses the execution of the function until we ask to return the next value.
Normal functions on the other hand fully execute th...
melvingeorge-me.hashnode.dev9 min read