development #11

Merged
NicollyVieira merged 20 commits from development into master 2022-10-28 18:16:57 +00:00
Showing only changes of commit fc6eb1d4eb - Show all commits

View File

@ -1,4 +1,7 @@
export function isAnagram(word1, word2) {
// implementar logica aqui
let primeiraString = word1.toLowerCase().split('').sort().join('');
let segundaString = word2.toLowerCase().split('').sort().join('');
return primeiraString === segundaString ? true : false;
}