Not a biggy... but index.js ln:106 (line 106) contains your nested function to save each source's information in your database object.
Would there be some benefit to remove this from the getSource() function which sends the API request and instead declare it as a 'helper function' below?
Not a biggy... but index.js ln:106 (line 106) contains your nested function to save each source's information in your database object.
Would there be some benefit to remove this from the getSource() function which sends the API request and instead declare it as a 'helper function' below?
Potentially cleaner code?