Open oelna opened 4 years ago
bulk operations for DOM nodes https://twitter.com/LeaVerou/status/1328297703332323329
const elements = document.querySelectorAll('.foo') [...elements].forEach(el => Object.assign(el, attributes))
Alternatives available as ESM