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:

ParameterTypeDescription
splitWorkspaceSplitThe split to iterate.
callback(leaf: WorkspaceLeaf) => unknownThe callback to call for each leaf.

Returns: void