Skip to content

@serenity-is/corelib / trimToNull

Function: trimToNull()

trimToNull(s): string

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

Defined in

src/q/strings-compat.ts:99