forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'feat(desafio08):desafio-completo' (#8) from feature/desafio08 into develop
Reviewed-on: #8
This commit is contained in:
commit
89b562bb43
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user