const response = { s1: 1, s2: 2, s3: 3 } Object.keys(response).forEach((k) => { listData.push({ homew: k, score: response[k] }) })