UNPKG

@1771technologies/lytenyte-pro

Version:

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

13 lines (12 loc) 314 B
export function checkSetActionItemKinds(p) { if (!p.items?.length) return true; const items = p.items; for (let i = items.length - 1; i >= 0; i--) { const x = items[i]; if (x.kind !== "leaf" && x.kind !== "parent") { return false; } } return true; }