feat(isAnagram): implementa funcao isAnagram

This commit is contained in:
DaviHKlein 2022-10-28 18:52:16 -03:00
parent 5ee7ae51ed
commit 373c2ace21

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
}