I understand your point about that but to keep the key, we would have to return a different structure like `[{key: 'userName', value: {/* an object*/}}, ...]` which is an even worse solution I believe. If the keys are important though, and maybe even sorting the keys, I think the best way is to first create an array of the keys then iterate on the keys.