feature/algoritmos #1

Merged
cainamilech merged 12 commits from feature/algoritmos into master 2022-10-29 19:58:08 +00:00
Showing only changes of commit b56e05ae4b - Show all commits

View File

@ -1,4 +1,8 @@
export function isAnagram(word1, word2) {
// implementar logica aqui
let palavra1 = word1.toLowerCase().split('').sort().join('');
let palavra2 = word2.toLowerCase().split('').sort().join('');
return (palavra1 === palavra2);
}