While we’re here, find_map, filter_map, take, take_while… i want excellent std iter tools. They’re not big or complicated impls, but they sure would have big impact if available out of the box!
While we’re here, find_map, filter_map, take, take_while… i want excellent std iter tools. They’re not big or complicated impls, but they sure would have big impact if available out of the box!
(They're not on objects, which I think is probably for the best; every method on Object.prototype is a shadowing risk and so we're unlikely to see any besides the ones that already exist. You can always use Object.entries; if your object has so many dynamically-computed properties that eagerly collecting them is a performance concern, then it should probably be a Map.)
Not saying anyone SHOULD do this... just that one _could_.
Should be, but there's so much legacy code that is going to hand you objects.
Also, unless you go to a weirdly large amount of effort, JSON.parse will give you objects.
On the proto extension: Sure. Fair argument. Id still be interested in a world where theyre there and non enumerable, or there but behind an .iter() field.