How to Preserve Key Insertion Order in JavaScript
TL;DR: JavaScript objects do not guarantee insertion order when using integer keys. The ES6 specification forces integer-like keys (array indices) to the front of the object, sorted numerically. To ma
doogal.dev5 min read