2022-10-27 15:07:13 +00:00
|
|
|
export function isAnagram(word1, word2) {
|
|
|
|
// implementar logica aqui
|
2022-10-28 13:49:59 +00:00
|
|
|
word1 = word1.toUpperCase().split('').sort().join('');
|
|
|
|
word2 = word2.toUpperCase().split('').sort().join('');
|
|
|
|
return word1 === word2
|
|
|
|
}
|