ES6 Features - 10 Use Cases for Proxy
- 10 use case on es6 proxy object
- Default properties
- Hide private properties
- As a enum collection
- Implement onChange hook/event of object
- Persistance the object using cookie
- Update cookie on change
- Persistance the object using cookie
- Add cache layer to the object
- Operator overloading
in
,of
,delete
, andnew
- Implement Singleton pattern
- By overloading
new
operator
- By overloading
- Validation and revocable access
- It is use case of decorator pattern
- Implement Python like array slice
- I don’t thing it is very useful, unless for python fans