feat: algoritmo 8

This commit is contained in:
Patrick Reis Santos 2022-11-02 01:34:44 -03:00
parent 176d485260
commit f981cf4b49

View File

@ -1,4 +1,6 @@
export function isAnagram(word1, word2) {
let str1 = word1.toLowerCase().split("").sort().join("");
let str2 = word2.toLowerCase().split("").sort().join("");
return str1 === str2;
// implementar logica aqui
}
}