M
M
mishneg2020-10-23 14:32:29
JavaScript
mishneg, 2020-10-23 14:32:29

JS Add array to Multidimensional array?

There is an array like
let arrray =
We need to add an array like [id_4, consta_4] between id_1 and id_2.
How can I do that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
amstr1k, 2020-10-23
@amstr1k

array.splice(1, 0, [id_4,consta_4])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question