Given the provided (very simple) generator, is it possible to return the generator back to its original state to use again? I would like to be able to pass the iterable off to some other scope, iterate over it, do some other stuff, then be able to iterate over it again later on in that same scope. Answer If your
Tag: ecmascript-6
Private properties in JavaScript ES6 classes
Is it possible to create private properties in ES6 classes? Here’s an example. How can I prevent access to instance.property? Answer Private class features is now supported by the majority of browsers.