Hard

How to Safely Extend JavaScript Built-in Prototypes for a Plugin System

You're building a plugin system that needs to safely extend built-in objects. What's wrong with this implementation and which solution correctly fixes the issues?

Choose an option below