I\'m really enjoying ES6 generators. Is there a way I can detect generator support in browsers? I know generators might not be in a lot of browsers (or possible no browsers at a
One of the few times that eval is actually the right solution.
eval
For language construct changes, you need something like this:
try { eval("(function *(){})"); } catch(err) { console.log(err); console.log("No generators"); }