1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 11:41:18 -04:00

commit all random stuff to repo

This commit is contained in:
2018-05-17 14:47:47 -05:00
parent f38f231cae
commit 809962e1ed
62 changed files with 9187 additions and 26 deletions

View File

@@ -0,0 +1,11 @@
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);
}