How can I convert an array that contains multiple objects to a single object
I want to convert something like this :
[
{
'Kyber': {tokenSymbol: 'DAI', avgPrice: 1}
},
{
'Bamboo Relay': {tokenSymbol: 'DAI',avgPrice: 1}
}
]
To something like this :
{
'Kyber': {tokenSymbol: 'DAI', avgPrice: 1},
'Bamboo Relay': {tokenSymbol: 'DAI',avgPrice: 1}
}