Skip to content

Commit 9384e97

Browse files
authored
Update README.md
1 parent 5e9b2ee commit 9384e97

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ Convert a plain array of nodes (with pointers to parent nodes) to a a nested dat
3636
#### Parameters
3737
- **Array** `data`: An array of data
3838
- **Object** `options`: An object containing the following fields:
39-
 - `id` (String): An unique node identifier. Default: 'id'
40-
 - `pid` (String): A name of a property where a link to a parent node could be found. Default: 'pid'
41-
 - `children` (String): The child node name that you want. Default: 'children'
42-
 - `firstPid` (String): The parent id of fisrt level node . Default: null
39+
- `id` (String): An unique node identifier. Default: 'id'
40+
- `pid` (String): A name of a property where a link to a parent node could be found. Default: 'pid'
41+
- `children` (String): The child node name that you want. Default: 'children'
42+
- `firstPid` (String): The parent id of fisrt level node . Default: null
4343

4444
#### Return
4545
- **Array**: Result of transformation

0 commit comments

Comments
 (0)