"The quick brown fox" endsWith "The"
» false
file.fileFromPath (f) endsWith " Backup"
» true
The expression would return true for files named "ToDo Backup" and "Report Backup", but false for "run backup" since the lower case 'b' doesn't match the upper-case 'B'. Note that we don't really need to call file.fileFromPath here, since the file name is
at the end of the path anyway.
1234 endsWith 34
» true
The numbers are converted to strings for this operation.
{1, 2, 3} endsWith 3
» true
The number 3 is converted to a list, and the comparison results in true.