forked from M3-Academy/challenge-algorithms-v2.0
feature/algoritmo #1
@ -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
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user