lua has s:gsub, which is basically the same thing... or are you saying js should've popped into existence with thousands of stdlib functions?
- replace all occurences,
- remove n-th element,
- binary search for an item,
- sort an array without implicit string coercion
in a good stdlib. Lua is explicitly minimalist, so it is not a good example here.
JavaScript... well, remember left-pad? That's what happens when people are forced to re invent the wheels.
I don't think many people were upset that javascript didn't natively support, say, proper integers or static types or (ugh) "classes" or what have you, at least not until people started wanting to use javascript outside of its intended purpose.