DLiteScript

strings.endsWith

Checks if a string ends with a specific suffix.

Examples

1
2
printf("%t\n", strings.endsWith("hello world", "world")) // true
printf("%t\n", strings.endsWith("hello world", "hello")) // false