Skip to content

Workspace.iterateLeaves method

Workspace › iterateLeaves

Unofficial

Iterate the leaves of a split.

Signature:

iterateLeaves(split: WorkspaceSplit, callback: (leaf: WorkspaceLeaf) => unknown): void

Parameters:

Parameter Type Description
split WorkspaceSplit The split to iterate.
callback (leaf: WorkspaceLeaf) => unknown The callback to call for each leaf.

Returns: void