mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 17:48:30 -04:00
12 lines
451 B
JavaScript
Executable File
12 lines
451 B
JavaScript
Executable File
String.prototype.replaceAt = function(index, text){
|
|
return this.substr(0, index) + text + this.substr(index + text.length);
|
|
}
|
|
|
|
String.prototype.addTagAt = function(index, tagBegin, tagEnd, size){
|
|
return this.substr(0, index) + tagBegin + this.substr(index, size) + tagEnd + this.substr(index + size);
|
|
}
|
|
|
|
String.prototype.replaceAt_with_size = function(index, text, size){
|
|
return this.substr(0, index) + text + this.substr(index + size);
|
|
}
|