humbertoferro #1

Merged
Humberto.Ferro merged 9 commits from humbertoferro into master 2022-10-31 21:34:30 +00:00
Showing only changes of commit 752b0d75a3 - Show all commits

View File

@ -1,4 +1,6 @@
export function isAnagram(word1, word2) { export function isAnagram(word1, word2) {
// implementar logica aqui // implementar logica aqui
word1 = word1.toUpperCase().split('').sort().join('');
word2 = word2.toUpperCase().split('').sort().join('');
return word1 === word2
} }