node-lib

@wtasnorg/node-lib


@wtasnorg/node-lib / trimLeftString

Function: trimLeftString()

trimLeftString(s, cutset): string

Defined in: src/strings.ts:1073

TrimLeft returns a slice of the string s with all leading Unicode code points contained in cutset removed.

Parameters

s

string

Input string.

cutset

string

String of characters to trim from left.

Returns

string

Left-trimmed string.