@inc2734/for-each-html-nodes

0.4.0 • Public • Published

forEachHtmlNodes

Get started

Install

$ npm install @inc2734/for-each-html-nodes

Example

import forEachHtmlNodes from '@inc2734/for-each-html-nodes';

const items = document.querySelectorAll('.c-item');
forEachHtmlNodes(items, (item, index) => {
  item.setAttribute('data-is-hidden', 'true');
});

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @inc2734/for-each-html-nodes

Weekly Downloads

7

Version

0.4.0

License

MIT

Unpacked Size

57.3 kB

Total Files

6

Last publish

Collaborators

  • inc2734