TypeScript/tests/cases/compiler/stringTrim.ts
2019-02-08 00:51:23 +09:00

8 lines
169 B
TypeScript

// @target: es2019
var trimmed: string;
trimmed = "abcde".trimEnd();
trimmed = "abcde".trimStart();
trimmed = "abcde".trimLeft();
trimmed = "abcde".trimRight();