modify-property
A Node.js module which lets you patch the descriptor of an existing object property. This is primarily useful for swapping out getters or setters.
Installation
npm install modify-property --save
Usage
const obj = {}Object // Now we want to modify this property. const modifyProperty = objname // Ben