Here is an array that I am currently working with:
[{"stuff_width":200,"_id":"cPEzHYNLHhyHbtK9MJ7F","stuff_weight":400,"stuff_length":100,"image":["cPEzHYNLHhyHbtK9MJ7F_0","cPEzHYNLHhyHbtK9MJ7F_1"],"quantity":5,"stuff_type":"Cunstruction Material \\/ Cement","stuff_height":300},{"stuff_width":200,"_id":"F5OhdfGnoHpffkpR82KK","stuff_weight":300,"stuff_length":400,"image":["F5OhdfGnoHpffkpR82KK_0"],"quantity":5,"stuff_type":"Furniture \\/ Wood Items","stuff_height":400}]'
My question is, can I simply remove the first and last single quotes and use it as a regular array?
I attempted to do so using the following code:
courier_items.slice(1, -1);
However, the result I got was not what I expected. It still treated the data as a string rather than an array.
What I actually want is to work with an actual array, not just a string representation of one.