25 lines
742 B
Plaintext
25 lines
742 B
Plaintext
=== tests/cases/compiler/stringIncludes.ts ===
|
|
|
|
var includes: boolean;
|
|
>includes : boolean
|
|
|
|
includes = "abcde".includes("cd");
|
|
>includes = "abcde".includes("cd") : boolean
|
|
>includes : boolean
|
|
>"abcde".includes("cd") : boolean
|
|
>"abcde".includes : (searchString: string, position?: number) => boolean
|
|
>"abcde" : "abcde"
|
|
>includes : (searchString: string, position?: number) => boolean
|
|
>"cd" : "cd"
|
|
|
|
includes = "abcde".includes("cd", 2);
|
|
>includes = "abcde".includes("cd", 2) : boolean
|
|
>includes : boolean
|
|
>"abcde".includes("cd", 2) : boolean
|
|
>"abcde".includes : (searchString: string, position?: number) => boolean
|
|
>"abcde" : "abcde"
|
|
>includes : (searchString: string, position?: number) => boolean
|
|
>"cd" : "cd"
|
|
>2 : 2
|
|
|