Trie data structure implementation in TypeScript.
import { Trie } from 'trie-js';
const trie = new Trie();trie.insert('Tree');trie.search('Tree'); // Returns: truetrie.startsWith('Tr'); // Returns: true
trie.startsWith('Xyz'); // Returns: falseconst node = trie.getNode('Tre'); // Returns: TrieNode | nullRun npm run build to build project.