siblings

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

BSD 3 个版本
安装
npm install siblings
yarn add siblings
pnpm add siblings
bun add siblings
README

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'
版本列表
1.0.1 2014-06-10
1.0.0 2014-06-08
0.0.1 2014-06-06