forked from M3-Academy/challenge-algorithms-v2.0
retonando o anagrama
This commit is contained in:
parent
fefb2522c8
commit
29679d802c
@ -1,4 +1,8 @@
|
||||
export function isAnagram(word1, word2) {
|
||||
// implementar logica aqui
|
||||
|
||||
if (word1.length !== word2.length) {
|
||||
return false;
|
||||
}
|
||||
if (word1.length === word2.length) {
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user