JavaScript isalphanumeric

const isAlphaNumeric = str => /^[a-z0-9]+$/gi.test(str);
Innocent Impala