Conversion of js data format

I have a data, he is such an array

a = [{general error: 0}, {general error: 0}, {accident symptom: 1}]
how can I convert this a data into
a = [
{name: general error below, Value: 0},
{name: general error, Value: 0},
{name: accident symptom, Value: 1}]
this format


const result = a.map(v => {
  let key = Object.keys(v)[0];
  return {
    name: key,
    value: v[key],
  };
});
console.log(result);

var c = a.map(m => { return {name: Object.keys(m)[0], Value: Object.values(m)[0]} })
console.log(c) // [{name: '', Value: 0},{name: '', Value: 0},{name: '', Value: 1}]

a.map (function (item) {
item.value = 0;
return a
})

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be7f29-45e4c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be7f29-45e4c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?