Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (!is_last) {
// explorer
for (const target of targets) {
const node = this.findNode(target.targetId);
if (!node) {
continue;
}
explore_element(node, elements, index + 1);
}
} else {
for (const target of targets) {
res.push({
remainingPathIndex: 0xFFFFFFFF,
targetId: coerceExpandedNodeId(target.targetId)
});
}
}
};