trie-obj
a fun to use implementation of the trie data structure
not optimized for common suffixes, etc. Feel free to submit PRs
Usage
const Trie = const trie = Trie// set key->value mappings as you would on a regular objecttriehello = 'world'triehelicon = 'another world'// lookup by prefixconsole// ['world', 'another world'] console// ['world'] // delete as you would from a regular objectdelete trieheliconconsole// ['world']