File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 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) {
6060 * @param {Object } options An object containing the following fields:
6161 *
6262 * - `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'
6464 * - `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'.
6767 *
6868 * @return {Array } Result of transformation
6969 */
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
101101
102102- ** Array** ` data ` : An array of data
103103- ** 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'.
106107
107108#### Return
108109
You can’t perform that action at this time.
0 commit comments