A trie is a key-value pair data structure, that allows you to store a value, by associating it with some string value. If you happen to know what that string value is, then you can retrieve the original value associated with the string.
If the string value is not associated to any value, then a null is returned.
As opposed to an associative array, tries actually save memory, by not storing redundant character prefixes of strings.
import Trie from './trie';