I have a comma separated string and i want to convert it into multiple arrays. Here is the code i tried but failed to achieve the expected output.
const data = "123,456";
result = data.split(',').map(s => Array.from(s));
console.log(result); // [["1", "2", "3"], ["4", "5", "6"]]
Expected output:
[["123"], ["456"]]