arr.map(({ i }) => ({ i }));
arr.map(function(n) {
return { i: n.i };
});
arr.map(n => ({i: n.i}));
function translate(){
fetch('https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=en&hl=ru&dt=t&dt=bd&dj=1&source=icon&tk=467103.467103&q=привет', {
method: 'POST',
}).then(res=>res.json())
.then(function(res){
handler(res);
});
}
translate();
function handler(data) {
console.log(data['sentences'][0]['trans']);
}