> You're not supposed to rely on the order of keys in objects anyway
. I'm sorry (and how did that get so many upvotes) but in Javascript you absolutely can rely on the order of keys in an object and I very often do. If it is convenient to whatever you're coding then go for it - just be aware that in other languages it may not work the same way.
↧
Comment by Simon_Weaver on map function for objects (instead of arrays)
↧