open_in_new
content_copy
let dictionary = Object.assign({}, ...data.map((x) => ({[x.id]: x.country})));