ES6 classes : what about instrospection?
In ES5, we could wheck the existence of a class on the window object Only if the constructor function was a global, which is poor practice. In ES6, according to this article, globally-declared classes are globals, but not properties of the global object… Correct. (The same is true of let and const declarations at global … Read more