第一个数组:
const arr1 = [[1, 2, 3, 4], [5, 6, 7, 8]];
第二个数组:
const arr2 = [['some1', 'some2'], ['some3', 'some4']];
所需数组:
const finalArr = [[1, 2, 3, 4], ['some1', 'some2'], ['some3', 'some4']];
所以,基本上finalArr应该有第一个索引数组 ofarr1和restof arr2。
如何才能做到这一点?
绝地无双
蝴蝶刀刀
慕村9548890
慕尼黑8549860
随时随地看视频慕课网APP
相关分类