DEV Community

Discussion on: Adding Methods to Prototypes, JS

Collapse
 
jonrandy profile image
Jon Randy 🎖️

Adding to native prototypes is generally a bad idea, unless you're doing it for polyfilling purposes

Collapse
 
beaufortaustin profile image
Austin Beaufort • Edited

This article demonstrates how to add to native prototypes yes.

Whether it is a good or bad practice is irrelevant to the point of the article.

The article goal is to show how it's done.

Thanks for reading.