Skip to content

trimStart

trimStart(target)

Removes whitespace from the start of target string.

ts
trimStart("  hello world  "); // "hello world  "
ts
pipe("  hello world  ", trimStart()); // "hello world  "