Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
238 views

How come language designers don't upgrade their global functions?

For example, when working with arrays there are methods like indexOf() that works like this: if (array.indexOf("something")!=-1) { // do something or nothing } Why hasn't someone made a contains ...
1.21 gigawatts's user avatar