I need to fetch the keys and values of an Object in separate places and want to know if the order given in .keys() is consistent with that of .values()
I don't care about the order in relation to how they were inserted. Essentially, I just want to know that .keys()[0] corresponds to .values()[0], .keys()[1] corresponds to .values()[1], etc.
Do I need to convert it to a Map to ensure this parallel consistency or can I keep it as an Object?