I have a string as a prototype of an array if arrays:
'[ [7,8,9], [12,13,14] ]'
Are there any solutions to convert this to array of arrays?
I have used Array.from() with no luck.
You can use eval (usually not recommended):
let str = '[ [7,8,9], [12,13,14] ]';
let arr = eval(str);
console.log(arr);
Or JSON.parse:
let str = '[ [7,8,9], [12,13,14] ]';
let arr = JSON.parse(str);
console.log(arr);
JSON.parse()