endsWith

Syntax

endsWith(X, str)

Arguments

X is a STRING scalar/vector.

str is a STRING scalar.

Details

Check if X ends with str. If yes, return true; otherwise, return false.

Examples

endsWith('ABCDEF!', "F!");
// output
true

endsWith('ABCDEF!', "E!");
// output
false