Here you can find the source of splice( idx, rem, s )
/**/*from w w w . ja va 2 s .co m*/ * @author archmagece * @since 2014-11-18-17 * @with WebGrimPan */ String.prototype.splice = function( idx, rem, s ) { return (this.slice(0,idx) + s + this.slice(idx + Math.abs(rem))); };
String.prototype.splice = function( idx, rem, s ) { return (this.slice(0,idx) + s + this.slice(idx + Math.abs(rem))); };
String.prototype.splice = function( idx, rem, s ) { return (this.slice(0,idx) + s + this.slice(idx + Math.abs(rem))); };
String.prototype.splice = function( idx, rem, s ) { return (this.slice(0,idx) + s + this.slice(idx + Math.abs(rem))); };
String.prototype.splice = function ( idx, rem, s ) { return ( this.slice( 0, idx ) + s + this.slice( idx + Math.abs( rem ) ) );
String.prototype.splice = function(...args) { var x = this.split(""); x.splice(...args); return x.join(""); };