We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75d4193 commit 62ccc17Copy full SHA for 62ccc17
src/common/util/tree/hasLeaves.ts
@@ -1,3 +1,3 @@
1
import { TableNode } from '@table-library/react-table-library/types/table';
2
3
-export const hasLeaves = <T extends TableNode>(node: T): boolean => !!node.nodes?.length;
+export const hasLeaves = <T extends TableNode>(node?: T): boolean => !!node?.nodes?.length;
0 commit comments