DEV Community

Discussion on: Object.defineProperty call replaces the setter with a normal data property.

Collapse
 
nevodavid profile image
Nevo David

Neat how using Object.defineProperty just wipes out the setter like flipping a switch. Makes me wonderhow do you know when to keep a function around and when to just use plain old data?