so i have this kind of array
columnData:[
{
title: 'Male Members',
key: 'm_members'
}
{
title: 'Female Members',
key: 'f_members'
}
]
and i want to turn it into something like this
newColumn: {
m_members: 'Male Members',
f_members: 'Female Members
}
how to do that with javascript or with lodash?