Within my matrix are arrays of rows.
let matrix=[['hello'],['world']];
I am looking to duplicate each row within the matrix.
matrix=matrix.map(x=>String(x).repeat(2)).map(x=>x.match(new RegExp??))
The desired outcome should be
[['hello','hello'],['world','world']]