feat(isAnagram): adiciona resolucao questao08-isanagram

This commit is contained in:
carloswinter 2022-10-28 16:12:56 -03:00
parent 452a9e79bd
commit b22aa4bde7

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
}