* Check if complete word exists in Trie. * * @param {string} word * @return {boolean}
(word)
| 84 | * @return {boolean} |
| 85 | */ |
| 86 | doesWordExist(word) { |
| 87 | const lastCharacter = this.getLastCharacterNode(word); |
| 88 | |
| 89 | return !!lastCharacter && lastCharacter.isCompleteWord; |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * @param {string} word |
no test coverage detected