Hello apologies if this has been asked before but I can't search for the right term to find something useful.
Suppose if I had an array of
[
"0.001234", "2021-07-14 08:24:30"
"0.001245", "2021-07-14 01:04:24"
// etc etc ...
]
how would I change this to an object like so?
{
0: ["0.001234", "2021-07-14 08:24:30"]
1: ["0.001245", "2021-07-14 01:04:24"]
// etc etc ...
}
JSON.stringify(array)or if you wish to do more, please follow up the anwser given.