/next-sibling

Get the next sibling of an element.

Primary LanguageJavaScript

next-sibling

Get the next sibling of an el, optionally filtered by a selector.

Installation

$ component install ianstormtaylor/next-sibling

Example

var next = require('next-sibling');
var body = next(document.head); // document.body

License

MIT