What functionality is still missing from the JS standard library? The JS standard library seems massive these days.
Edit: Removed a reference to node and bun.
Some utility stuff I copy paste between projects:
- range, clamp, inIvl, enumerate, topK
- groupBy (array to record), numeric / lexical array sorts
- seeded rng
- throttling
- attachDragListener (like d3's mousedown -> mousemove -> mouseup)
- Maps / Sets that accept non-primitive keys (ie custom hash)
So basically functions that every *dash variant includes.It's not standard unless it's in the actual standard.
Those aren't a standard library for the language itself - they're not showing up in browsers, for example.
loading story #47476431
We're talking about JS in browsers: many fewer options there, plus needing to support old devices.