Skip to content

Commit

Permalink
✨ feat(vestigo): Adding string replace between function
Browse files Browse the repository at this point in the history
  • Loading branch information
MedericPixium committed May 23, 2020
1 parent 49166a9 commit dd1f15f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/string.extensions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
String.prototype.replaceBetween = function(start, end, what) {
return this.substring(0, start) + what + this.substring(end);
};
5 changes: 4 additions & 1 deletion src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
declare module 'crimson-progressbar';
declare module 'whois-json';
declare module 'whois-json';
interface String {
replaceBetween(start: number, end: number, what: string): string;
}

0 comments on commit dd1f15f

Please sign in to comment.