Skip to content

@serenity-is/corelib / trimToEmpty

Function: trimToEmpty()

trimToEmpty(s): string

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

Defined in

src/q/strings-compat.ts:91