Transforming a string into an array with a length of 2 can be achieved using the following method.
let str1 = '112213';
let str1Array = str1.match(/.{2}/g);
console.log(str1Array);
The output will be
[ '11', '22', '13' ]
Now, is it possible to obtain [ '1', '12', '2', '13'] in a similar way?