14 lines
329 B
TypeScript
14 lines
329 B
TypeScript
//// [stringTrim.ts]
|
|
var trimmed: string;
|
|
trimmed = "abcde".trimEnd();
|
|
trimmed = "abcde".trimStart();
|
|
trimmed = "abcde".trimLeft();
|
|
trimmed = "abcde".trimRight();
|
|
|
|
|
|
//// [stringTrim.js]
|
|
var trimmed;
|
|
trimmed = "abcde".trimEnd();
|
|
trimmed = "abcde".trimStart();
|
|
trimmed = "abcde".trimLeft();
|
|
trimmed = "abcde".trimRight();
|