Entrega do Desafio #1

Merged
anacarolinaduartecavalcante merged 10 commits from feature/09-caractere-mais-repetido into master 2022-10-24 19:09:34 +00:00
Showing only changes of commit 007a601900 - Show all commits

View File

@ -16,7 +16,14 @@
*/
function isAnagram(test, original) {
// implementar logica aqui
return ""
const Anagram = str =>
str
.toLowerCase()
.replace(/[^a-z0-9]/gi, '')
.split('')
.sort()
.join('');
return Anagram(test) === Anagram(original);
}
// Resultados esperados