JSFiddle - React, Tailwind, and code Playground
JavaScript
function disemvowel(str) {
var strTest = 'meu nome é hernani/, teste';
const vogals = 'aeiouAEIOU'.split('')
for(let char of strTest){
if(vogals.some((ele)=> char === ele)){
// console.log(char)
strTest.replaceAll(char, '')
console.log(strTest)
}
}
console.log(strTest)
return str;
}
disemvowel('teste')