function arrayToTree and treeToArray
You can use console.log(...) for vue3 proxy fields
Wrapper for setTimeout and setInterval