How to write the method which at the output will convert the key where there is a character "_" into a space. At the same time, we cannot bind to shortcut keys, but to make the method universal, that would itself find and transform.
const arr = [{
"name": "BMW",
"price": "55 000",
"color": "red",
"constructor_man": "Billy%Zekun" //should become "constructor man"
}, {
"name": "MERSEDEC",
"price": "63 000",
"color": "blue",
"constructor_man": "Jon%Adams" //should become "constructor man"
}, {
"name_car": "Lada", //should become "name car"
"price": "93 000",
"color": "blue",
"constructor_man": "Bar John", //should become "constructor man"
"door": "3"
}, {
"name": "TOYOTA",
"price": "48 000",
"color": "blue",
"constructor_man": "Jon Hubert", //should become "constructor man"
"door": "3",
"max_people": "7" //should become "max people"
}
];