General module for grocery-list project
- Source:
Methods
(static) concatObjectMerge(existing_object, new_object) → {Object}
Filters duplicate values in two Objects. If an object already exists in the original
Object, the value is concatenated to the existing value
Parameters:
Name | Type | Description |
---|---|---|
existing_object |
Object | |
new_object |
Object |
- Source:
Returns:
- Type
- Object
(static) readFileIntoArray(fileName) → {Array.<string>}
Reads a text file into an array, where each line of the file denotes an element in the array
Parameters:
Name | Type | Description |
---|---|---|
fileName |
string | Path to file |
- Source:
Returns:
File contents as an array
- Type
- Array.<string>