Array-specialization of endsWith with default predicate.
const x = "beta version"; assert(x.endsWith("version")); assert(x.endsWith('n')); assert(!x.endsWith("_")); assert(!"".endsWith("_")); assert(!"".endsWith('_'));
See Implementation
Array-specialization of endsWith with default predicate.