Is there a way to change the key-value pair format into an array? I have received data in the following format and need to convert it into an array within a .TS file.
countryNew: {
IN: 159201
BD: 82500
PK: 14237
UA: 486
RU: 9825
}
This needs to be transformed to...
countryNew: [
{countryCode: 'IN' , value : 159201},
{countryCode: 'BD' , value : 82500},
{countryCode: 'PK' , value : 14237},
{countryCode: 'UA' , value : 486},
{countryCode: 'RU' , value : 9825},
]