• Parameters

    • strings: string[]

    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
      • Add a new word to the trie

        Parameters

        • word: string

        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
          • Add a new word to the trie

            Parameters

            • word: 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
          • Count the number of words with the given prefixSearch

            Parameters

            • word: string

            Returns number

            Number

        • dump:function
          • Get a string representation of the trie

            Parameters

            • Optional spacer: number

            Returns string

        • getAnagrams:function
          • Get a list of valid anagrams that can be made from the given letters

            Parameters

            • word: string

            Returns string[]

            Array

        • getPrefix:function
          • Get a list of all words in the trie with the given prefix

            Parameters

            • word: string
            • Optional sort: boolean

            Returns string[]

            Array

        • getRandomWordWithPrefix:function
          • Get a random word in the trie with the given prefix

            Parameters

            • prefix: string

            Returns string

            Array

        • getSubAnagrams:function
          • Get a list of all sub-anagrams that can be made from the given letters

            Parameters

            • word: string

            Returns string[]

            Array

        • getWords:function
          • Get all words in the trie

            Parameters

            • Optional sorted: boolean

            Returns string[]

            Array

        • hasWord:function
          • Check the existence of a word in the trie

            Parameters

            • word: string

            Returns boolean

            Boolean

        • isPrefix:function
          • Check a prefix is valid

            Parameters

            • word: string

            Returns boolean

            Boolean

        • removeWord:function
          • Remove an existing word from the trie

            Parameters

            • word: 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
          • Get the generated raw trie object

            Returns any

    • countPrefix:function
      • Count the number of words with the given prefixSearch

        Parameters

        • word: string

        Returns number

        Number

    • dump:function
      • Get a string representation of the trie

        Parameters

        • Optional spacer: number

        Returns string

    • getAnagrams:function
      • Get a list of valid anagrams that can be made from the given letters

        Parameters

        • word: string

        Returns string[]

        Array

    • getPrefix:function
      • Get a list of all words in the trie with the given prefix

        Parameters

        • word: string
        • Optional sort: boolean

        Returns string[]

        Array

    • getRandomWordWithPrefix:function
      • Get a random word in the trie with the given prefix

        Parameters

        • prefix: string

        Returns string

        Array

    • getSubAnagrams:function
      • Get a list of all sub-anagrams that can be made from the given letters

        Parameters

        • word: string

        Returns string[]

        Array

    • getWords:function
      • Get all words in the trie

        Parameters

        • Optional sorted: boolean

        Returns string[]

        Array

    • hasWord:function
      • Check the existence of a word in the trie

        Parameters

        • word: string

        Returns boolean

        Boolean

    • isPrefix:function
      • Check a prefix is valid

        Parameters

        • word: string

        Returns boolean

        Boolean

    • removeWord:function
      • Remove an existing word from the trie

        Parameters

        • word: string

        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
          • Add a new word to the trie

            Parameters

            • word: 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
          • Count the number of words with the given prefixSearch

            Parameters

            • word: string

            Returns number

            Number

        • dump:function
          • Get a string representation of the trie

            Parameters

            • Optional spacer: number

            Returns string

        • getAnagrams:function
          • Get a list of valid anagrams that can be made from the given letters

            Parameters

            • word: string

            Returns string[]

            Array

        • getPrefix:function
          • Get a list of all words in the trie with the given prefix

            Parameters

            • word: string
            • Optional sort: boolean

            Returns string[]

            Array

        • getRandomWordWithPrefix:function
          • Get a random word in the trie with the given prefix

            Parameters

            • prefix: string

            Returns string

            Array

        • getSubAnagrams:function
          • Get a list of all sub-anagrams that can be made from the given letters

            Parameters

            • word: string

            Returns string[]

            Array

        • getWords:function
          • Get all words in the trie

            Parameters

            • Optional sorted: boolean

            Returns string[]

            Array

        • hasWord:function
          • Check the existence of a word in the trie

            Parameters

            • word: string

            Returns boolean

            Boolean

        • isPrefix:function
          • Check a prefix is valid

            Parameters

            • word: string

            Returns boolean

            Boolean

        • removeWord:function
          • Remove an existing word from the trie

            Parameters

            • word: 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
          • Get the generated raw trie object

            Returns any

    • tree:function
      • Get the generated raw trie object

        Returns any

Generated using TypeDoc