mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-03 02:50:59 +08:00
- Multi-AI competition mode (Qwen vs DeepSeek) - Binance Futures integration - AI self-learning mechanism - Professional web dashboard - Complete risk management system
12 lines
285 B
JavaScript
12 lines
285 B
JavaScript
export default function collectElements(node, direction) {
|
|
var nextNode = null;
|
|
var nodes = [];
|
|
nextNode = node ? node[direction] : null;
|
|
|
|
while (nextNode && nextNode.nodeType !== 9) {
|
|
nodes.push(nextNode);
|
|
nextNode = nextNode[direction] || null;
|
|
}
|
|
|
|
return nodes;
|
|
} |