File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 3
3
module . exports = nlcstToString
4
4
5
5
// Stringify one nlcst node or list of nodes.
6
- function nlcstToString ( node , separator ) {
7
- var sep = separator || ''
6
+ function nlcstToString ( node , separator = '' ) {
8
7
var values
9
8
var length
10
9
var children
@@ -28,8 +27,8 @@ function nlcstToString(node, separator) {
28
27
values = [ ]
29
28
30
29
while ( length -- ) {
31
- values [ length ] = nlcstToString ( children [ length ] , sep )
30
+ values [ length ] = nlcstToString ( children [ length ] , separator )
32
31
}
33
32
34
- return values . join ( sep )
33
+ return values . join ( separator )
35
34
}
Original file line number Diff line number Diff line change 27
27
"files" : [
28
28
" index.js"
29
29
],
30
- "dependencies" : {},
31
30
"devDependencies" : {
32
31
"browserify" : " ^17.0.0" ,
33
32
"nyc" : " ^15.0.0" ,
37
36
"tape" : " ^5.0.0" ,
38
37
"tinyify" : " ^3.0.0" ,
39
38
"unist-builder" : " ^2.0.0" ,
40
- "xo" : " ^0.35 .0"
39
+ "xo" : " ^0.38 .0"
41
40
},
42
41
"scripts" : {
43
42
"format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
You can’t perform that action at this time.
0 commit comments