Skip to content

@serenity-is/corelib / trimStart

Function: trimStart()

trimStart(s): any

Defined in: src/compat/strings-compat.ts:85

Removes leading whitespace from a string.

Parameters

s

string

The input string; null/undefined yields "".

Returns

any

The string without leading whitespace.

Deprecated

Use String.prototype.trimStart / trimLeft directly.