UNPKG

pure-conditions

Version:
5 lines (4 loc) 130 B
function isAlphaNumeric (string) { return [...string].every(char => /[A-Za-z0-9]/.test(char)) } module.exports = isAlphaNumeric