forked from M3-Academy/challenge-algorithms-v2.0
8 lines
158 B
JavaScript
8 lines
158 B
JavaScript
export function isAnagram(word1, word2) {
|
|
if (word1.length !== word2.length) {
|
|
return false;
|
|
}
|
|
if (word1.length === word2.length) {
|
|
return true;
|
|
}
|
|
} |