Refactor to remove computed property names

This commit is contained in:
Christian Bundy 2019-09-16 16:18:38 -07:00
parent 69405b0197
commit d5eb21396d
No known key found for this signature in database
GPG Key ID: EB541AAEF4366237

View File

@ -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 =