Skip to content

@serenity-is/corelib / trim

Function: trim()

trim(s): string

Trims the whitespace characters from the start and end of the string This returns empty string even when the string is null or undefined.

Parameters

s

string

Returns

string

Defined in

src/q/strings-compat.ts:83