let fd = new FormData();
fd.append('a', 10);
fd.append('a', 20);
fd.append('a', 30);
fd.append('b', 60);
let data = {
'a': '10x20x30',
'b': '60'
}
let uniqueKeys = [...new Set(fd.keys())];
let normalizeFormData = new FormData();
for(let key of uniqueKeys) {
normalizeFormData.append(key, fd.getAll(key).join('x'));
}
for (let val of normalizeFormData.entries()) {
console.log(val);
}
// 'a': '10x20x30',
// 'b': '60'