Passed test (all) in exercise 11

This commit is contained in:
NetMan 2024-01-11 21:44:48 +01:00
parent fe94193f97
commit d8d93e38e0
1 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
const getTheTitles = function() {
const getTheTitles = function(array) {
const titles = array.map((obj) => {
return obj.title;
})
return titles;
};
// Do not edit below this line