TypeScriptStringendsWith

Determines whether a string ends with the characters of a specified string.

Syntax

str.endsWith(searchStr, endPosition?): boolean