|
|
|
|
|
by spartanatreyu
1194 days ago
|
|
And extending javascript's built-in objects has been considered bad practice since at least 2007. Before that point, browser environments were so different that you needed to write code per-browser. Those theoretical concerns didn't really matter since in-practice you were essentially coding the same app in different scripting languages. |
|
Totally. It's just extending the prototype that causes the problem though, not extending from (class myclass extends array). This causes a lot of confusion among new js devs so I underline this on every opportunity.