es6-node-iterator

1.0.2 • Public • Published

es6-node-iterator

Makes NodeIterator compatible with ES6 iterator protocol.

Install

npm install es6-node-iterator

Usage

  • document.createNodeIteratorES6(root, whatToShow, filter)
  • NodeIteratorES6(root, whatToShow, filter)
  • NodeIteratorES6.call(iframeDocument, root, whatToShow, filter)

It can be used as AMD module.

What is NodeIterator actually?

It's almost useless DOM API (but it can be used to retrieve Text, CData and Comments nodes).

You can read more on MDN.

/es6-node-iterator/

    Package Sidebar

    Install

    npm i es6-node-iterator

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.5 kB

    Total Files

    4

    Last publish

    Collaborators

    • ginden