I have an array of objects like so:
[
0:'some value'
1:'some value'
3:'some value'
]
and what i want is a nice array of objects without keys for an editabale select like so:
[
{value: 1, text: 'Active'},
{value: 2, text: 'Blocked'},
{value: 3, text: 'Deleted'}
]
i have tried looping and assigning, but i am getting the same result. how can i achieve this array:
cities.push({value:value, text:value});