could have just used a generator for Number.prototype[Symbol.iterator] Yes i agree i could have used generator then i have to explain how that works to in the same article.
could have just used a generator for Number.prototype[Symbol.iterator]
Idea of how it works is reading the specs and implementing how it could have been implemented if we write it in vanilla js.
Nice one anayways! 👍
Yep. That's right! It is vanilla js but i wanted it to be simple as possible and didnt want to explain how generator works.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.