@serenity-is/corelib / startsWith

Function: startsWith()

startsWith(s, prefix): boolean

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

Checks if the string starts with the prefix

Parameters

s

string

String to check.

prefix

string

Prefix to check.

Returns

boolean

True if the string starts with the prefix.

Deprecated

Use .startsWith method of String directly