I know this has been asked before but I can't seem to find the answer, how to change array in array to object in array ..??
problem this in javaScript.
[
[
'2019-08-01',
'one',
],
[
'2019-08-02',
'two',
],
[
'2019-08-03',
'tree',
]
]
to
[
{
'date': '2019-08-01',
'sort': 'one'
},
{
'date': '2019-08-02',
'sort': 'two'
},
{
'date': '2019-08-03',
'sort': 'tree'
}
]