Array.prototype.insert = function ( index, ...items ) { this.splice( index, 0, ...items ); }; //then var arr = [ 'A', 'B', 'E' ]; arr.insert(2, 'C', 'D'); // => arr == [ 'A', 'B', 'C', 'D', 'E' ]