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

Method hasChildren

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

* Check whether current TrieNode has children or not. * @return {boolean}

()

Source from the content-addressed store, hash-verified

71 * @return {boolean}
72 */
73 hasChildren() {
74 return this.children.getKeys().length !== 0;
75 }
76
77 /**
78 * @return {string[]}

Callers 2

removeChildMethod · 0.80
TrieNode.test.jsFile · 0.80

Calls 1

getKeysMethod · 0.80

Tested by

no test coverage detected