JS Add Array to Multidimensional Array?
-
There is an array like
let arrray = [[id_1, consta_1], [id_2, consta_2], [id_3, consta_3]]
You need to add an array like [id_4, consta_4] in the place between id_1 and id_2.
How can I do that?JavaScript Anonymous, Sep 20, 2020 -
array.splice (1, 0, [id_4, consta_4])
Savannah Bullock
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!