A data structure that combines a hash and an array for automated indexing. All the benefits of an indexed HashMap and an Array in one neat tidy, tested package. Complex keys with multiple depths can be used!
Can you remove the debug dependency in your package.json?
I am using trie-search (btw, I like it much better than many of the other trie libraries). I gave snyk a try and it flagged the version of ms used by your version of debug as insecure due to some regex bug. I don't see any uses of debug in your code, so it can't hurt to remove it. I'd rather not install an npm module I am not actually using. If there is a some reason you need debug, can you bump the version?
Hi Josh i am using the trie-search and found a bug in it when using reserved words as a key, after debugging i found out that the problem was in the function
this.getCache.get(phrase)
when phrase = 'constructor' it returns a function() instead of an element or array, hope it clear enough to let you find out which the problem is.