I am currently writing (as an exercise) a simple political calculator that checks depending on how many seats each party has, possible majorities in the parliament. I have created an object that holds the name as key and the seats as value, like so: I then use Object(entries) to move the data into an array: My question is, how can