let newResult = {};
result.forEach(info => {
for(const item in info){
if(info[item].toLowerCase() == value){
newResult.item = info[item];
}
}
})
console.log(newResult)
I want to make an object from another object and for this reason, this item should be dynamic instead of a static string. Any help?