Get the next Node Element, with optional container restriction.
npm install next-node> Get the next Node Element, with optional container restriction.
```
$ npm install --save next-node
`html`
`js
const nextNode = require('next-node');
nextNode(a1);
//=> b1
nextNode(b1);
//=> b2
nextNode(b2);
//=> c1 (container not specified)
nextNode(b2, a1);
//=> null (container specified)
`
#### node
Type: Node
The initial ("needle") Node element.
#### container
Type: Nodenull
Default:
The container ("haystack") Node element. Specifying a container` will limit results to its children only.
MIT © Luke Edwards