Node setter

[data/tree/Node setter]


Immutably stores the specified node on the specified path of the tree.


Input ports

  • tree: (any[] or {string: any})

    Tree data structure in which to store a node.

  • path: (string or number)[]

    Specifies the location of the node.

  • node: any

    The node to be stored in the tree.

Output ports

  • tree: (any[] or {string: any})

Last updated