Step: Reshape: to_entries / from_entries
Reshape: to_entries / from_entries
to_entries turns an object into an array of {key, value} records so you can iterate over key/value pairs; from_entries rebuilds an object from them.
Why it matters: it's how you loop over unknown keys, or rename/rekey an object programmatically.
Your turn: convert the scores object into an array of {name, score} records.
Input:
Expected:
Step 23 of 27