It will check whether the string ends with the given searchString.
string
searchString
1.0.0
endsWith("012345", "345");// => true Copy
endsWith("012345", "345");// => true
endsWith("012345", "34");// => false Copy
endsWith("012345", "34");// => false
endsWith("012345", "123", 4);// => true Copy
endsWith("012345", "123", 4);// => true
It will check whether the
string
ends with the givensearchString
.