@serenity-is/corelib / trimToEmpty

Function: trimToEmpty()

trimToEmpty(s): string

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

Trims the whitespace characters from the start and end of the string Returns empty string if the string is null or undefined.

Parameters

s

string

Returns

string