Private methods & properties in JavaScript
-
Updated
Oct 15, 2017 - JavaScript
Private methods & properties in JavaScript
Create a given ES6 class with private members using Proxy and closures. Keeps class code clean, encourages SRP and DRY.
A JavaScript class implementation with protected members
Access private members with compile-time safety
Add a description, image, and links to the private-members topic page so that developers can more easily learn about it.
To associate your repository with the private-members topic, visit your repo's landing page and select "manage topics."