11 lines
242 B
TypeScript
11 lines
242 B
TypeScript
|
//// [stringIncludes.ts]
|
||
|
|
||
|
var includes: boolean;
|
||
|
includes = "abcde".includes("cd");
|
||
|
includes = "abcde".includes("cd", 2);
|
||
|
|
||
|
//// [stringIncludes.js]
|
||
|
var includes;
|
||
|
includes = "abcde".includes("cd");
|
||
|
includes = "abcde".includes("cd", 2);
|