Everything you need to know about Generators in JavaScript π
If you have been working with JavaScript quite a lot, you might have come across some syntax like this:
function* makeIterator() {
yield 1;
yield 2;
}
Now, you might be wondering what is this code exactly doing? Well, honestly speaking, I fel...
thecodingcookbook.hashnode.dev10 min read