Type guard for the tree Leaf type.
Underlying tree type.
import * as Tree from 'effect-tree'const leaf = Tree.of(1)const branch = Tree.branch(1, [Tree.of(2)])expect(Tree.isLeaf(leaf), 'branch').toBe(true)expect(Tree.isLeaf(branch), 'branch').toBe(false) Copy
import * as Tree from 'effect-tree'const leaf = Tree.of(1)const branch = Tree.branch(1, [Tree.of(2)])expect(Tree.isLeaf(leaf), 'branch').toBe(true)expect(Tree.isLeaf(branch), 'branch').toBe(false)
Type guard for the tree Leaf type.