Skip to main content
Module

x/core_fn/string/trim_start.ts>trimStart

A collection of built-in object method and property as currying function
Latest
variable trimStart
import { trimStart } from "https://deno.land/x/core_fn@v1.0.0-beta.16/string/trim_start.ts";

Removes the leading white space and line terminator characters from a string.

Examples

Example 1

trimStart('   hello') // 'hello'
trimStart(' \n\thello') // 'hello'

type

<T extends string>(val: T) => TrimStart<T>