string convert to array code example
Example 1: javascript string to array
const str = 'Hello!';
const arr = Array.from(str);
//[ 'H', 'e', 'l', 'l', 'o', '!' ]
Example 2: convert string to char array in java
String str = "example";
char[] ch = str.toCharArray();
Example 3: convert matrix string to matrix javascript
string = '[[1, 2], [3, 4], [5, 6]]'
string = JSON.parse(string)