Skip to content

trimStart

String.trimStart(target)

Removes whitespace from the start of target string.

Example

ts
import { String } from "@monstermann/string";

String.trimStart("  hello world  "); // "hello world  "
ts
import { String } from "@monstermann/string";

pipe("  hello world  ", String.trimStart()); // "hello world  "