var arr=[
[11,12,13,"","2"],
[21,22,23,"","2"],
[31,32,33,"","2"]
];
var arr2=[
[11,12,13],
[21,22,23],
[31,32,33]
];
I want to ask everyone for a simple method. The result of intercepting the first three bits of each item in arr, such as arr2
, can only create an empty array by itself. After processing the data, put it into arr2