Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.
What is the ljharb/mock-property GitHub project? Description: "Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.". Written in JavaScript. Explain what it does, its main use cases, key features, and who would benefit from using it.
Question is copied to clipboard — paste it after the AI opens.
Clone via HTTPS
Clone via SSH
Download ZIP
Download master.zipReport bugs or request features on the mock-property issue tracker:
Open GitHub Issues