How to convert this string into an array

how do I use js to convert the following strings into arrays?
has a string with the following shape

array(1) {
  [0]=>
  array(4) {
    ["id"]=>
    string(2) "30"
    [0]=>
    string(2) "30"
    ["date"]=>
    string(10) "2018-10-14"
    [1]=>
    string(10) "2018-10-14"
  }
}

excuse me, how do I convert this string into an array?

Dec.09,2021

this is from php var_dump. Encode it with php's json_encode before trying dump and then output it, and your requirements will be gone.

Menu