open_in_new
content_copy
let dictionary = data.reduce((a,x) => ({...a, [x.id]: x.country}), {})