adding coursesEnrolled.js as a functionality to check what courses have been taken up.
This commit is contained in:
13
utils/parseCourseResults.js
Normal file
13
utils/parseCourseResults.js
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
const parseCourseResults = (listOfObj) => {
|
||||
result = listOfObj.map(obj => {
|
||||
const studiegidsNummer = obj.studiegidsNummer.slice(-10);
|
||||
return `${studiegidsNummer} ${obj.opleidingsOnderdeel} - ${obj.studiepunten}SP, `;
|
||||
});
|
||||
|
||||
|
||||
return result.join("\n");
|
||||
|
||||
}
|
||||
|
||||
module.exports = parseCourseResults;
|
||||
Reference in New Issue
Block a user