mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
merge: Format codebase with standard.js
(#989)
* Auto-update DIRECTORY.md * fix: some redundancy according to standard javascript library Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -18,7 +18,7 @@ function Trie () {
|
||||
Trie.findAllWords = function (root, word, output) {
|
||||
if (root === null) return
|
||||
if (root.count > 0) {
|
||||
if (typeof output === 'object') { output.push({ word: word, count: root.count }) }
|
||||
if (typeof output === 'object') { output.push({ word, count: root.count }) }
|
||||
}
|
||||
let key
|
||||
for (key in root.children) {
|
||||
|
Reference in New Issue
Block a user