DEV Community

Discussion on: What is the use of Proxy and Reflect in JavaScript?

Collapse
 
jankapunkt profile image
Jan Küster

I wrote a tiny package that uses proxy to create factories for any of your existing es6 (or old es5) classes and allows to define private fields or function based on a rule function: github.com/jankapunkt/js-class-pri...

No need to fully rewrite the classes to support private members (plus I still dislike the choice of the hash character for the private fields feature)