Add String#replace & String#replaceAll (#653)

This commit is contained in:
Max Graey
2019-06-12 18:39:49 +03:00
committed by Daniel Wirtz
parent d4313f1ed8
commit 3af2603daa
15 changed files with 5206 additions and 3013 deletions

View File

@@ -1240,6 +1240,8 @@ declare class String {
padStart(targetLength: i32, padString?: string): string;
padEnd(targetLength: i32, padString?: string): string;
repeat(count?: i32): string;
replace(search: string, replacement: string): string;
replaceAll(search: string, replacement: string): string;
slice(beginIndex: i32, endIndex?: i32): string;
split(separator?: string, limit?: i32): string[];
toString(): string;