path-to-domnode

1.0.1 • Public • Published

path to DOMNode

pathTo(node:DOMNode, rootNode:DOMNode)

  • node is a descendant of rootNode.
  • rootNode is the reference in respect to which the paths are resolved
  • returns an array, where [] is the root node, [0] is the first child node and [0,1] is the second child of the first child of the root node

See also

Legal

(c) 2016 by Marcel Klehr

MIT-License

Readme

Keywords

Package Sidebar

Install

npm i path-to-domnode

Weekly Downloads

7

Version

1.0.1

License

MIT

Last publish

Collaborators

  • marcelklehr