See the original description in base::endsWith.
base::endsWith
endsWith(x, suffix)
x
See description.
suffix