ember/ember-3.4.8.template-compiler.js
// over any nodes which do not represent DOM nodes.
over any nodes which do not represent DOM nodes.
over any nodes which do not represent DOM nodes .
function domIndexOf(nodes, domNode) {
        var index = -1,
            i,
            node;
        for (i = 0; i < nodes.length; i++) {
            node = nodes[i];
            if (node.type !== 'TextNode' && node.type !== 'ElementNode') {
                continue;
            } else {
                index++;
            }
            if (node === domNode) {
                return index;
            }
        }
        return -1;
    }
function domIndexOf ( nodes , domNode ) { var index = - 1 , i , node ; for ( i = 0 ; i < nodes . length ; i ++ ) { node = nodes [ i ] ; if ( node . type !== 'TextNode' && node . type !== 'ElementNode' ) { continue ; } else { index ++ ; } if ( node === domNode ) { return index ; } } return - 1 ; }
over any nodes which do not represent DOM nodes.
over any nodes which do not represent DOM nodes .