Tree
/ API ReferenceTree
/ API Referencecreate
Creates a new node with a unique id.
The Gist
import { create } from '@weser/tree'
const node = create({
children: [],
})
Parameters
| Parameter | Type | Description |
|---|---|---|
| node | T_BaseNodeInput | The node to create. |
Returns
(T) A new node with a unique id.
© 2024-present Robin Weser. All Rights Reserved.