@serenity-is/corelib / trimToNull

Function: trimToNull()

trimToNull(s): string

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

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

Parameters

s

string

Returns

string