Skip to content

Commit

Permalink
feat: added | undefined to avoid typechecking problems
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Jul 30, 2023
1 parent 706d692 commit 0600326
Show file tree
Hide file tree
Showing 3 changed files with 320 additions and 313 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,15 @@ function attributesToString (attributes) {

continue
}

if (value === null || value === undefined) {
continue
}

result += ' ' + formattedName

if (value !== '') {
result += '="' + escapeHtml(value) + '"'
result += '="' + escapeHtml(value) + '"'
}
}

Expand Down
Loading

0 comments on commit 0600326

Please sign in to comment.