KotlinStringendsWith

Returns true if the string ends with the specified suffix.

Syntax

str.endsWith(suffix)