challenge-algorithms-v2.0_c.../08-isAnagram/index.js

8 lines
158 B
JavaScript

export function isAnagram(word1, word2) {
if (word1.length !== word2.length) {
return false;
}
if (word1.length === word2.length) {
return true;
}
}