chore: use Boolean to filter TemplateChildNode (#569)

This commit is contained in:
susiwen8 2019-12-31 00:26:45 +08:00 committed by Evan You
parent a7ef59c4c3
commit dee5480317

View File

@ -233,7 +233,7 @@ function parseChildren(
}
}
return removedWhitespace ? nodes.filter(node => node !== null) : nodes
return removedWhitespace ? nodes.filter(Boolean) : nodes
}
function pushNode(nodes: TemplateChildNode[], node: TemplateChildNode): void {