Methods
(inner) filterAndSortByTitle(records) → {Array}
Filter and sort ascending the input records
based on their titles.
Parameters:
Name | Type | Description |
---|---|---|
records |
Array |
- Source:
Returns:
sorted & filtered records
- Type
- Array
(inner) groupByParent(records, parentIdName) → {Object}
Group all input records based on parent variable name.
Returns an object where the object parameters are the
different values of the parent variable name.
Parameters:
Name | Type | Description |
---|---|---|
records |
Array | which have a parent ID |
parentIdName |
String | variable name for parent ID |
- Source:
Returns:
grouped records
- Type
- Object