Merge pull request 'feat(isAnagram): implementa funcao isAnagram' (#8) from feature/isAnagram into development

Reviewed-on: #8
This commit is contained in:
DaviKlein 2022-10-28 22:11:36 +00:00
commit 28f6eb8128

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
}