insert item into array specific index javascript

JavaScript
myArray.splice(index, 0, item);
Source

Also in JavaScript: