Closed atombrenner closed 6 months ago
Thanks @atombrenner, I will review your PR shortly. Regarding the search-index I think you can safely drop the file since the structure was indeed renamed to InvertedIndex
. The inverted-index also has a typo where I wrote Index
instead of InvertedIndex
.
Thanks @atombrenner. Will merge now.
The goal of this PR is to use common modern JavaScript syntax in the code examples of the documentation. This will increase the readability of the examples by being more familiar syntax. I should also help spread best practices with modern, as people tend to copy paste examples.
There are only two types of changes:
const
instead ofvar
I found no examples that need alet
. Sometimes a code example declared the same variable multiple times, usually to explain overloads. In this case I splitted the example.While doing those changes I stumbled over two potential bugs, please review the commits
FuzzyMultiMap.from()
example was wrong, fixed to the best of my knowledge