nice-trie
v0.1.1
Published
Simple Trie data structure implementation in Javascript
Downloads
5
Readme
nice-trie
Simple Trie data structure implementation in JavaScript. Including support for simple '.' wildcards.
Installation
$ npm install nice-trie
Usage
const Trie = require('nice-trie');
const trie = new Trie();
Trie.insert(['hello', 'world', 'nice', 'trie']);
Trie.isMember('nice');
// true
Trie.isMember('n.c.');
// true
Trie.isMember('nicee');
// false