socket.on('ten', function(msg) {
$("table").html('');
msg.data.forEach(item => $("table").append(`<tr><td>${item}</td></tr>`));
});
const data = response.data;
const result = Object.assign({}, ...Object.keys(data).map(k => ({[data[k].alpha2Code]: data[k].gini})));
// result = {AF: 27.8, AX: null, AL: 34.5, DZ: 35.3, AS: null, …}