src/traversing/var/siblings.js

Maintainability

74.66

Lines of code

17

Created with Raphaël 2.1.002550751002016-7-102016-6-102016-5-112016-4-112016-3-122016-2-112016-1-12

2016-8-9
Maintainability: 74.66

Created with Raphaël 2.1.0051015202016-7-102016-6-102016-5-112016-4-112016-3-122016-2-112016-1-12

2016-8-9
Lines of Code: 17

Difficulty

12.00

Estimated Errors

0.06

Function weight

By Complexity

Created with Raphaël 2.1.0<anonymous>4

By SLOC

Created with Raphaël 2.1.0<anonymous>17
define( function() {
1
define( function() {
2
 
3
"use strict";
4
 
5
return function( n, elem ) {
6
    var matched = [];
7
 
8
    for ( ; n; n = n.nextSibling ) {
9
        if ( n.nodeType === 1 && n !== elem ) {
10
            matched.push( n );
11
        }
12
    }
13
 
14
    return matched;
15
};
16
 
17
} );