@serenity-is/corelib / endsWith

Function: endsWith()

endsWith(s, suffix): boolean

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

Checks if the string ends with the specified substring.

Parameters

s

string

String to check.

suffix

string

Suffix to check.

Returns

boolean

True if the string ends with the specified substring.

Deprecated

Use .endsWith method of String directly