export function isAnagram(word1, word2) { // implementar logica aqui word1 = word1.toLowerCase().split('').sort().join(''); word2 = word2.toLowerCase().split('').sort().join(''); if(word1 == word2) return true; return false; }