I am novice programmer in javascript. Kindly guide me in the right path.
Below is a 3D array of size 2 x 3 x 3
"items": [ [ [1,2,3], [4,5,6], [7,8,9] ], [ [10,11,12], [13,14,15], [16,17,18] ] ]
Now, I need to insert a row, something like [ [19,20,21], [22,23,24], [25,26,27] ] at an index 1 or 2.
I tried with splice function, but all in vain.
Being a multi dimensional array, I don't know what value goes into the itemN parameter of the splice function.
items.splice(insertIndex, 0, `????`);
How can I accomplish it? Thanks