forked from M3-Academy/challenge-algorithms-v2.0
feature/algoritmos #1
@ -1,4 +1,7 @@
|
||||
export function isAnagram(word1, word2) {
|
||||
// implementar logica aqui
|
||||
|
||||
const organiza = str =>
|
||||
str.toLowerCase().split('').sort().join('');
|
||||
|
||||
return organiza(word1) === organiza(word2);
|
||||
}
|
Loading…
Reference in New Issue
Block a user