2022-10-27 15:07:13 +00:00
|
|
|
export function isAnagram(word1, word2) {
|
|
|
|
// implementar logica aqui
|
2022-10-28 15:57:21 +00:00
|
|
|
const organiza = str =>
|
|
|
|
str.toLowerCase().split('').sort().join('');
|
|
|
|
|
|
|
|
return organiza(word1) === organiza(word2);
|
2022-10-27 15:07:13 +00:00
|
|
|
}
|