I'm struggling to find real (or practical) use cases for Javascript generators in frontend.
I'm sure there are many cases in which they are useful (trees and so on). The thing is I don't usually implement trees in day to day live.
So far, I haven't found any case in which the generator couldn't be easily replaced by a familiar while or for structure (full supported by all browsers and understood by all devs).
I'd like to know if any of you have found a practical case in frontend in which it was really useful and worth using or if you think that's nothing more than a fancy feature that will become deprecated in the long run.