Add .gitignore to exclude all node packages and lock files
This commit is contained in:
Generated
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
export function skipToNextNonDescendant(treeWalker) {
|
||||
// Try to go to next sibling
|
||||
if (treeWalker.nextSibling()) {
|
||||
return true;
|
||||
}
|
||||
// No sibling, go up to parent and try to find ancestor's sibling
|
||||
while (treeWalker.parentNode()) {
|
||||
if (treeWalker.nextSibling()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// No more nodes
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user