Get the next Node Element, with optional container restriction.
Install
$ npm install --save next-node
Usage
const nextNode = ; ;//=> b1 ;//=> b2 ;//=> c1 (container not specified) ;//=> null (container specified)
API
nextNode(node, [container])
node
Type: Node
The initial ("needle") Node element.
container
Type: Node
Default: null
The container ("haystack") Node element. Specifying a container
will limit results to its children only.
License
MIT © Luke Edwards