forked from M3-Academy/challenge-algorithms-v2.0
feat(challenge): desafio anagrama finalizado
This commit is contained in:
parent
eca76cda84
commit
3c77c0f310
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user