Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix Trie.keysWithPrefix throwing on not found

  • Loading branch information...
commit 63ac31f7487ead6e43df97b4583307cb62d44b88 1 parent 8118e2e
Moos moos authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
2  README.md
View
@@ -730,7 +730,7 @@ console.log(trie.findMatchesOnPath("tester")); // ['tes', 'test'];
### All Keys with Prefix
-This search will return all of the words in the Trie with the given prefix.
+This search will return all of the words in the Trie with the given prefix, or [ ] if not found.
```javascript
console.log(trie.keysWithPrefix("string")); // ["string1", "string2", "string3"]
Please sign in to comment.
Something went wrong with that request. Please try again.