Skip to content

Commit

Permalink
huh. never noticed that
Browse files Browse the repository at this point in the history
  • Loading branch information
mi2ebi committed Dec 6, 2023
1 parent 2964b45 commit cfcf212
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ function createHTMLElement(tag, props, children) {
const element = document.createElement(tag);
Object.assign(element, props);
for (const child of children) {
if (child) {
element.append(child);
}
if (child) {
element.append(child);
}
}
return element;
}
Expand Down

0 comments on commit cfcf212

Please sign in to comment.