Package: effect
Module: String
Removes whitespace from the start of a string.
Example (Trimming leading whitespace)
import { String } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(String.trimStart(" a "), "a ")
assert.deepStrictEqual(String.trimStart(" hello world"), "hello world")
Signature
declare const trimStart: <A extends string>(self: A) => TrimStart<A>
Since v2.0.0