Simple in-memory tree datasource backed by an array of root nodes.
The constructor takes a defensive copy of the root array so that
external mutations do not affect the tree. Child nodes are read
from a configurable property on each TreeNode, defaulting
to 'children'.
Simple in-memory tree datasource backed by an array of root nodes.
The constructor takes a defensive copy of the root array so that external mutations do not affect the tree. Child nodes are read from a configurable property on each TreeNode, defaulting to
'children'.Example