Refactor to remove computed property names
This commit is contained in:
parent
69405b0197
commit
d5eb21396d
@ -14,7 +14,7 @@ const {
|
||||
|
||||
const doctypeString = '<!DOCTYPE html>'
|
||||
|
||||
const toAttributes = (obj) => Object.entries(obj).map((entry) => `${entry[0]}=${entry[1]}`).join(', ')
|
||||
const toAttributes = (obj) => Object.entries(obj).map(([key, val]) => `${key}=${val}`).join(', ')
|
||||
|
||||
module.exports = (...elements) => {
|
||||
const nodes =
|
||||
|
Loading…
Reference in New Issue
Block a user