I am new in Javascript and I looking for the neatest way to convert
x=[[["0","0"],["1","1"],["2","1.5"]],[["0","0.1"],["1","1.1"],["2","2"]]]
into
[[[0,0],[1,1],[2,1.5]],[[0,0.1],[1,1.1],[2,2]]]
Except for using two for loops to implement this method, is there any shortcut alternative in JS?