I have two arrays like this,
var firstArray = ['one','two','three','four','five','six','seven'];
var secondArray =['1','2','3','4','5','6','7','8'];
I have to insert second array elements into first array like this,
var combinedArray =['one','two','three','1','2','four','five','six','3','4','seven','5','6','7','8']
I know that I could splice and insert at specific index for one element. However I am confused how exactly to achieve this pattern.
Could any one help me out with this?
sixtwice in your example output