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