src/durruti.js
function getComponentNodes ($container, traverse = true, arr = []) {
  if ($container._durruti) {
    arr.push($container)
  }

  if (traverse && $container.children) {
    for (let i = 0; i < $container.children.length; i++) {
      getComponentNodes($container.children[i], traverse, arr)
    }
  }

  return arr
}
function getComponentNodes ($container, traverse = true, arr = []) {
  if ($container._durruti) {
    arr.push($container)
  }

  if (traverse && $container.children) {
    for (let i = 0; i < $container.children.length; i++) {
      getComponentNodes($container.children[i], traverse, arr)
    }
  }

  return arr
}
function getComponentNodes ( $container , traverse = true , arr = [ ] ) { if ( $container . _durruti ) { arr . push ( $container ) } if ( traverse && $container . children ) { for ( let i = 0 ; i < $container . children . length ; i ++ ) { getComponentNodes ( $container . children [ i ] , traverse , arr ) } } return arr }
traverse and find durruti nodes
traverse and find durruti nodes