score:2

Accepted answer
const formatted = Object.entries(data).map(pair => {
    // do something with key and value here
    const key = pair[0]
    const value = pair[1]
    return `${key}: ${value}`
})

Related Query

More Query from same tag