File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,10 @@ var groupByParents = function(array, options) {
60
60
* @param {Object } options An object containing the following fields:
61
61
*
62
62
* - `parentProperty` (String): A name of a property where a link to
63
- * a parent node could be found. Default: 'parent_id'
63
+ * a parent node could be found. Default: 'parent_id'
64
64
* - `customID` (String): An unique node identifier. Default: 'id'
65
- * - `childrenProperty` (String): A name of a property where chilren nodes
66
- * are going to be stored. Default: 'children'.
65
+ * - `childrenProperty` (String): A name of a property where children nodes
66
+ * are going to be stored. Default: 'children'.
67
67
*
68
68
* @return {Array } Result of transformation
69
69
*/
Original file line number Diff line number Diff line change @@ -101,8 +101,9 @@ Convert a plain array of nodes (with pointers to parent nodes) to a a nested dat
101
101
102
102
- ** Array** ` data ` : An array of data
103
103
- ** Object** ` options ` : An object containing the following fields:
104
- - ` parentProperty ` (String): A name of a property where a link to a parent node could be found. Default: 'parent_id'
105
- - ` customID ` (String): An unique node identifier. Default: 'id'
104
+ - ` parentProperty ` (String): A name of a property where a link to a parent node could be found. Default: 'parent_id'.
105
+ - ` childrenProperty ` (String): A name of a property where children nodes are going to be stored. Default: 'children'.
106
+ - ` customID ` (String): An unique node identifier. Default: 'id'.
106
107
107
108
#### Return
108
109
You can’t perform that action at this time.
0 commit comments