@kamilmielnik/trie / hasPrefix
hasPrefix(
node
,prefix
):boolean
Defined in: lib/hasPrefix.ts:14
Tells you whether there are any words with given prefix in the Node.
See: https://en.wikipedia.org/wiki/String_operations#Prefixes
Node to look for prefix in.
string
Prefix to be found.
boolean
true if there are any words with given prefix in the Node, false otherwise.