UNPKG
mam-project-templates
Version:
latest (1.0.0)
1.0.0
my personal templating projects
github.com/MikeAlexMartinez/templates
MikeAlexMartinez/templates
mam-project-templates
/
cloned
/
FreeCSS
/
Deft
/
node_modules
/
jquery
/
src
/
traversing
/
var
/
siblings.js
16 lines
(11 loc)
•
203 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
define
(
function
(
) {
return
function
(
n, elem
) {
var
matched = [];
for
( ; n; n = n.
nextSibling
) {
if
( n.
nodeType
===
1
&& n !== elem ) { matched.
push
( n ); } }
return
matched; }; } );