I'm currently tackling a coding task that involves receiving a text input from the user in a specific format like shown below:
value = "[1, 2, 3, 4]\n[9, 8, 7, 6]\n[1, 2, 3, 4]";
When using .split, the value is transformed into an array as follows:
value = ["[1, 2, 3, 4]", "[9, 8, 7, 6]", "[1, 2, 3, 4]"];
Now, the challenge is how to convert those strings back into actual arrays?