diff --git a/index.html b/index.html index 7b01ea3..449f121 100644 --- a/index.html +++ b/index.html @@ -1 +1,3 @@ See GitHub home page +
+Grouped Word List diff --git a/wordlist.js b/wordlist.js index 4a379b5..fc809ce 100644 --- a/wordlist.js +++ b/wordlist.js @@ -333,3 +333,6 @@ var wordList = [ "year","yellow","yes","yesterday","yet","you","young","younger", "your","yourself","youth","zero","zebra","zipper","zoo","zulu" ]; + +const wordsByFirstLetter = Map.groupBy(wordList, (word) => word[0]); +console.log(wordsByFirstLetter); diff --git a/wordlist_grouped.html b/wordlist_grouped.html new file mode 100644 index 0000000..3e8ed78 --- /dev/null +++ b/wordlist_grouped.html @@ -0,0 +1,48 @@ + + + + + + Grouped Word List + + + +

Word List Grouped by First Letter

+ + + +