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