Interview Ready Flashcards
3
A
function isAlphanumeric(char) {
return /^[0-9a-zA-Z]+$/.test(char);
}
let formatted = s.toLowerCase().split(“”).filter(isAlphanumeric);
function isAlphanumeric(char) {
return /^[0-9a-zA-Z]+$/.test(char);
}
let formatted = s.toLowerCase().split(“”).filter(isAlphanumeric);