MCPcopy Index your code
hub / github.com/trekhleb/javascript-algorithms / hasChild

Method hasChild

src/data-structures/trie/TrieNode.js:65–67  ·  view source on GitHub ↗

* @param {string} character * @return {boolean}

(character)

Source from the content-addressed store, hash-verified

63 * @return {boolean}
64 */
65 hasChild(character) {
66 return this.children.has(character);
67 }
68
69 /**
70 * Check whether current TrieNode has children or not.

Callers 2

getLastCharacterNodeMethod · 0.80
TrieNode.test.jsFile · 0.80

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected