siblings

1.0.1 • Public • Published

siblings

get siblings for a dom element, optionally filtered by a css selector

var siblings = require('siblings')  
 
siblings(el, '.foo') // gets all siblings of `el` that have class 'foo'

Dependents (6)

Package Sidebar

Install

npm i siblings

Weekly Downloads

10

Version

1.0.1

License

BSD

Last publish

Collaborators

  • maxogden