Tests a string to see if it ends with a substring
string
(string): input string[substr='']
(string): substring to test
(boolean): does the input end with the substring?
const result = strings.endsWith('This sentence ends with', 'with');
console.log(result);
> true