Implement String#slice (#404)

This commit is contained in:
LiaoPeng
2019-01-10 19:10:23 +08:00
committed by Daniel Wirtz
parent d82995c686
commit 201bd5f2b1
8 changed files with 3270 additions and 2803 deletions

View File

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