feat(challenge): desafio anagrama finalizado #8

Merged
Thiago.bronisio merged 1 commits from feature/anagrama into master 2022-10-29 03:19:39 +00:00

View File

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