js inserting a record at a certain position array code example
Example 1: insert item into array specific index javascript
myArray.splice(index, 0, item);
Example 2: javascript Inserting values in between an array
myArray.splice(index, itemsToDelete, item1ToAdd, item2ToAdd, ...)