Javascript Array insertAt(index, item)
Array.prototype.insertAt = function(index, item) { this.splice(index, 0, item);// ww w . j a va2 s . co m return this; };
Array.prototype.insertAt = function(index, item) { this.splice(index, 0, item);//from w w w . ja v a 2 s .c om return this; }; String.prototype.capitalizeFirst = function() { return this.charAt(0).toUpperCase() + this.slice(1); };