I have created a JSFiddle containing a small word list of two and three-letter words. These words are loaded into an array and then filtered using the Array.prototype.filter
method, which is functioning correctly.
However, when my page attempts to download the Enable1 word list commonly used in games featuring word lists, my filter function returns an empty array instead of the expected 105 words.
I have verified that:
- The word lists both start with the word "
aa
" as intended - The lists contain 1091 and 172820 words respectively
- All words are lowercase and do not include surrounding spaces
- Upon loading, the only filtering criteria is "has exactly two letters"
- No errors appear in the console
- There is a 100mb (25%) increase in the Fiddle page's RAM usage, but my system still has 35% of RAM available
The provided code snippet shows the structure of my program. Why is this issue occurring? How can I ensure it functions properly with the larger word list?