Skip to Content

replaceById

replaceById(root: AnumaNode, id: string, next: AnumaNode): boolean

Defined in: src/tools/slides/jsx.ts:1099 

Replace the first node with matching id in the tree. Mutates root in place. Returns true on success.

Parameters

ParameterType

root

AnumaNode

id

string

next

AnumaNode

Returns

boolean

Last updated on