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'

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i siblings

    Weekly Downloads

    4

    Version

    1.0.1

    License

    BSD

    Last publish

    Collaborators

    • maxogden