feat(isAnagram): adiciona resolucao questao08-isanagram #8

Merged
carloswinter merged 1 commits from feature/isAnagram into development 2022-10-28 19:14:05 +00:00

View File

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