feat(desafio08):desafio-completo #8

Merged
nicolasrosadeoliveira merged 1 commits from feature/desafio08 into develop 2022-10-28 13:50:46 +00:00

View File

@ -1,4 +1,6 @@
export function isAnagram(word1, word2) {
// implementar logica aqui
}
word1 = word1.toUpperCase().split('').sort().join('');
word2 = word2.toUpperCase().split('').sort().join('');
return word1 === word2
}