Skip to content

Commit 9b45acf

Browse files
committed
Crel: Check for invalid children
1 parent 3983985 commit 9b45acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This might make it harder to read at times, but the code's intention should be t
1919
isType = (object, type) => typeof object === type,
2020
// Recursively appends children to given element if they're not `null`. As a text node if not already an element
2121
appendChild = (element, child) => {
22-
if (child !== null) {
22+
if (child != null) {
2323
if (Array.isArray(child)) { // Support (deeply) nested child elements
2424
child.map(subChild => appendChild(element, subChild));
2525
} else {

0 commit comments

Comments
 (0)