How does
Object.defineProperty
works for rewriting props.
By accessing the internal definition of the property (called “property attributes” in the spec).
Is it implemented using js mechanisms, and is it possible to implement the same functionality using js?
No. Object.defineProperty
is a primitive building block of the language.
CLICK HERE to find out more related problems solutions.