Skip to content

Latest commit

 

History

History
35 lines (18 loc) · 540 Bytes

endsWith.md

File metadata and controls

35 lines (18 loc) · 540 Bytes

@serenity-is/corelib / endsWith

Function: endsWith()

endsWith(s, suffix): boolean

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

Defined in

src/q/strings-compat.ts:8