I'm working on a JavaScript library that gets included in my customers application via a script tag.
Another library they want to include is making changes to the Object.prototype
by adding methods setObject
and getObject
as well as Object.prototype.properties
. This interferes with the execution of our code.
I would like to know if it's possible to protect our library for any manipulation of global prototypes, even beyond this specific example.