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