- Trie(strings): {
addWord(word): {
addWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
countPrefix(word): number;
dump(spacer?): string;
getAnagrams(word): string[];
getPrefix(word, sort?): string[];
getRandomWordWithPrefix(prefix): string;
getSubAnagrams(word): string[];
getWords(sorted?): string[];
hasWord(word): boolean;
isPrefix(word): boolean;
removeWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
tree(): any;
};
countPrefix(word): number;
dump(spacer?): string;
getAnagrams(word): string[];
getPrefix(word, sort?): string[];
getRandomWordWithPrefix(prefix): string;
getSubAnagrams(word): string[];
getWords(sorted?): string[];
hasWord(word): boolean;
isPrefix(word): boolean;
removeWord(word): {
addWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
countPrefix(word): number;
dump(spacer?): string;
getAnagrams(word): string[];
getPrefix(word, sort?): string[];
getRandomWordWithPrefix(prefix): string;
getSubAnagrams(word): string[];
getWords(sorted?): string[];
hasWord(word): boolean;
isPrefix(word): boolean;
removeWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
tree(): any;
};
tree(): any;
} Returns {
addWord(word): {
addWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
countPrefix(word): number;
dump(spacer?): string;
getAnagrams(word): string[];
getPrefix(word, sort?): string[];
getRandomWordWithPrefix(prefix): string;
getSubAnagrams(word): string[];
getWords(sorted?): string[];
hasWord(word): boolean;
isPrefix(word): boolean;
removeWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
tree(): any;
};
countPrefix(word): number;
dump(spacer?): string;
getAnagrams(word): string[];
getPrefix(word, sort?): string[];
getRandomWordWithPrefix(prefix): string;
getSubAnagrams(word): string[];
getWords(sorted?): string[];
hasWord(word): boolean;
isPrefix(word): boolean;
removeWord(word): {
addWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
countPrefix(word): number;
dump(spacer?): string;
getAnagrams(word): string[];
getPrefix(word, sort?): string[];
getRandomWordWithPrefix(prefix): string;
getSubAnagrams(word): string[];
getWords(sorted?): string[];
hasWord(word): boolean;
isPrefix(word): boolean;
removeWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
tree(): any;
};
tree(): any;
}
addWord:function
- addWord(word): {
addWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
countPrefix(word): number;
dump(spacer?): string;
getAnagrams(word): string[];
getPrefix(word, sort?): string[];
getRandomWordWithPrefix(prefix): string;
getSubAnagrams(word): string[];
getWords(sorted?): string[];
hasWord(word): boolean;
isPrefix(word): boolean;
removeWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
tree(): any;
} Returns {
addWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
countPrefix(word): number;
dump(spacer?): string;
getAnagrams(word): string[];
getPrefix(word, sort?): string[];
getRandomWordWithPrefix(prefix): string;
getSubAnagrams(word): string[];
getWords(sorted?): string[];
hasWord(word): boolean;
isPrefix(word): boolean;
removeWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
tree(): any;
}
addWord:function
- addWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; }
Returns { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; }
countPrefix:function
- countPrefix(word): number
Returns number
Number
dump:function
- dump(spacer?): string
Returns string
getAnagrams:function
- getAnagrams(word): string[]
Returns string[]
Array
getPrefix:function
- getPrefix(word, sort?): string[]
Parameters
word: string
Optional
sort: boolean
Returns string[]
Array
getRandomWordWithPrefix:function
- getRandomWordWithPrefix(prefix): string
Returns string
Array
getSubAnagrams:function
- getSubAnagrams(word): string[]
Returns string[]
Array
getWords:function
- getWords(sorted?): string[]
Returns string[]
Array
hasWord:function
- hasWord(word): boolean
Returns boolean
Boolean
isPrefix:function
- isPrefix(word): boolean
Returns boolean
Boolean
removeWord:function
- removeWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; }
Returns { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; }
tree:function
- tree(): any
Returns any
countPrefix:function
- countPrefix(word): number
Returns number
Number
dump:function
- dump(spacer?): string
Returns string
getAnagrams:function
- getAnagrams(word): string[]
Returns string[]
Array
getPrefix:function
- getPrefix(word, sort?): string[]
Parameters
word: string
Optional
sort: boolean
Returns string[]
Array
getRandomWordWithPrefix:function
- getRandomWordWithPrefix(prefix): string
Returns string
Array
getSubAnagrams:function
- getSubAnagrams(word): string[]
Returns string[]
Array
getWords:function
- getWords(sorted?): string[]
Returns string[]
Array
hasWord:function
- hasWord(word): boolean
Returns boolean
Boolean
isPrefix:function
- isPrefix(word): boolean
Returns boolean
Boolean
removeWord:function
- removeWord(word): {
addWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
countPrefix(word): number;
dump(spacer?): string;
getAnagrams(word): string[];
getPrefix(word, sort?): string[];
getRandomWordWithPrefix(prefix): string;
getSubAnagrams(word): string[];
getWords(sorted?): string[];
hasWord(word): boolean;
isPrefix(word): boolean;
removeWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
tree(): any;
} Returns {
addWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
countPrefix(word): number;
dump(spacer?): string;
getAnagrams(word): string[];
getPrefix(word, sort?): string[];
getRandomWordWithPrefix(prefix): string;
getSubAnagrams(word): string[];
getWords(sorted?): string[];
hasWord(word): boolean;
isPrefix(word): boolean;
removeWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; };
tree(): any;
}
addWord:function
- addWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; }
Returns { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; }
countPrefix:function
- countPrefix(word): number
Returns number
Number
dump:function
- dump(spacer?): string
Returns string
getAnagrams:function
- getAnagrams(word): string[]
Returns string[]
Array
getPrefix:function
- getPrefix(word, sort?): string[]
Parameters
word: string
Optional
sort: boolean
Returns string[]
Array
getRandomWordWithPrefix:function
- getRandomWordWithPrefix(prefix): string
Returns string
Array
getSubAnagrams:function
- getSubAnagrams(word): string[]
Returns string[]
Array
getWords:function
- getWords(sorted?): string[]
Returns string[]
Array
hasWord:function
- hasWord(word): boolean
Returns boolean
Boolean
isPrefix:function
- isPrefix(word): boolean
Returns boolean
Boolean
removeWord:function
- removeWord(word): { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; }
Returns { dump(spacer?: number | undefined): string; tree(): any; addWord(word: string): ...; removeWord(word: string): ...; isPrefix(word: string): boolean; countPrefix(word: string): number; ... 5 more ...; getSubAnagrams(word: string): string[]; }
tree:function
- tree(): any
Returns any
tree:function
- tree(): any
Returns any
Add a new word to the trie