2022-10-27 15:07:13 +00:00
|
|
|
export function isAnagram(word1, word2) {
|
|
|
|
// implementar logica aqui
|
2022-10-28 21:52:16 +00:00
|
|
|
if (word1.toLowerCase().split('').sort().join('')==word2.toLowerCase().split('').sort().join(''))
|
|
|
|
return true
|
|
|
|
return false
|
2022-10-27 15:07:13 +00:00
|
|
|
}
|