UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

12 lines (11 loc) 337 B
export function getValidLeafs(node, leafs, workingSet) { const rows = []; for (let i = 0; i < node.leafs.length; i++) { const x = node.leafs[i]; const workingIndex = workingSet[x]; const row = leafs[workingIndex]; if (node.leafIds.has(row.id)) rows.push(row); } return rows; }