export function isAnagram(word1, word2) {
// implementar logica aqui
const compare = str =>
str
.toLowerCase()
.split('')
.sort()
.join('');
if(compare(word1) === compare(word2)){
return true;
}
return false;