We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5745e1 commit acbed2fCopy full SHA for acbed2f
src/core/extendRoutes.ts
@@ -4,7 +4,14 @@ import { type TreeNode } from './tree'
4
import { warn } from './utils'
5
6
/**
7
- * A route node that can be modified by the user. The tree can be traversed with a `for of` loop.
+ * A route node that can be modified by the user. The tree can be iterated to be traversed.
8
+ * @example
9
+ * ```js
10
+ * [...node] // creates an array of all the children
11
+ * for (const child of node) {
12
+ * // do something with the child node
13
+ * }
14
+ * ```
15
*
16
* @experimental
17
*/
0 commit comments