SyntaxFix
Write A Post
Hire A Developer
Questions
const setAttributes = (el, attrs) => Object.entries(attrs) .forEach(args => el.setAttribute(...args))