@serenity-is/corelib / endsWith
endsWith(
s
,suffix
):boolean
Checks if the string ends with the specified substring.
string
String to check.
string
Suffix to check.
boolean
True if the string ends with the specified substring.
Use .endsWith method of String directly