We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acc3adc commit 4372660Copy full SHA for 4372660
src/anagram-service.js
@@ -48,7 +48,7 @@ class AnagramService {
48
49
const filteredWordsMapKeys = this.wordsArray.filter((word) => {
50
const hasSameLength = word.length === term.length;
51
-
+ if (!hasSameLength) return false;
52
const wordCharacterMap = this.getCharacterMap(word);
53
const MapsAreEqual = lodash.isEqual(wordCharacterMap, termCharacterMap);
54
0 commit comments