We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b27ce7 commit 42638e2Copy full SHA for 42638e2
lib/all.js
@@ -6,12 +6,11 @@ module.exports = all
6
7
// Serialize all children of `parent`.
8
function all(parent, config) {
9
- var children = parent && parent.children
10
- var length = children && children.length
+ var children = (parent && parent.children) || []
11
var index = -1
12
var results = []
13
14
- while (++index < length) {
+ while (++index < children.length) {
15
results[index] = one(children[index], config)
16
}
17
package.json
@@ -41,7 +41,7 @@
41
"tape": "^5.0.0",
42
"unist-builder": "^2.0.0",
43
"xastscript": "^2.0.0",
44
- "xo": "^0.35.0"
+ "xo": "^0.38.0"
45
},
46
"scripts": {
47
"format": "remark . -qfo && prettier . --write --loglevel warn && xo --fix",
0 commit comments