endsWith

Syntax

endsWith(X, str)

Details

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

Parameters

X is a STRING scalar/vector.

str is a STRING scalar/vector.

Returns

A scalar or vector of type BOOL.

Examples

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

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