feature/algoritmos #1

Merged
FilipeQuintanilha merged 10 commits from feature/algoritmos into master 2022-10-28 16:03:10 +00:00
Showing only changes of commit 139eb74a6c - Show all commits

View File

@ -1,4 +1,7 @@
export function isAnagram(word1, word2) { export function isAnagram(word1, word2) {
// implementar logica aqui // implementar logica aqui
const organiza = str =>
str.toLowerCase().split('').sort().join('');
return organiza(word1) === organiza(word2);
} }