This question already has an answer here:
- JavaScript getter for all properties 8 answers
Are the any magic(al) methods under JavaScript?
I'm explicitly interested in setters, getters and callables (functions/methods), like those we have in PHP: __set
, __get
and __call
&& __callStatic
.
I was googling and searching StackOverflow, but no results.
Please, if anyone is informed - THANKS!
see this:
JavaScript's equivalent to PHP's __get() magic method
JavaScript getter for all properties