setAttributeTuples
Sets multiple attributes to an Element.
Installation
npm install set-attribute-tuples
Usage
Set multiple attributes
const div = document;; console;//"btn-wrapper"
(Typescript) Optionally cast as a specific element type
;; console.logdiv.dataset.blah// "12345"
Development
description | npm | yarn |
---|---|---|
Build package | npm run build |
yarn build |
Run tests | npm run test |
yarn test |