Don't modify the prototype. Mootools was a popular JavaScript library around the time of jQuery. That's why if you use, I think arrays have dot contains and strings have dot includes,. The reason behind that is because kuromootools modified the prototype. People are so anti touching the prototype unless it is to literally one to one polyfill features.
In this episode of Syntax, Wes and Scott talk about what polyfills, transpiling, and monkey patching mean, how and when to do it, and libraries that can help you out.
Show Notes
××× SIIIIICK ××× PIIIICKS ×××
Shameless Plugs
Tweet us your tasty treats