We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d49222f commit 89e9c8fCopy full SHA for 89e9c8f
index.js
@@ -2,7 +2,7 @@
2
3
module.exports = nlcstToString
4
5
-/* Stringify a NLCST node or list of nodes. */
+// Stringify one nlcst node or list of nodes.
6
function nlcstToString(node, separator) {
7
var sep = separator || ''
8
var values
@@ -20,7 +20,7 @@ function nlcstToString(node, separator) {
20
children = 'length' in node ? node : node.children
21
length = children.length
22
23
- /* Shortcut: This is pretty common, and a small performance win. */
+ // Shortcut: This is pretty common, and a small performance win.
24
if (length === 1 && 'value' in children[0]) {
25
return children[0].value
26
}
0 commit comments