Suppose, I have two arrays :
A = [1, 2, 3, 4]
B = [10, 20, 30].
and I want to insert B's elements in array A starting from index 1. So, my final array would look like
[1, 10, 20, 30, 2, 3, 4]
I tried to do it with splice. But the splice function requires you to provide list of elements, not an array.
Is there any way to achieve it?