forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'feat(isAnagram): adiciona resolucao questao08-isanagram' (#8) from feature/isAnagram into development
Reviewed-on: #8
This commit is contained in:
commit
a5d512ee42
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user