diff --git a/11_getTheTitles/getTheTitles.js b/11_getTheTitles/getTheTitles.js index 74b04df..f33e82d 100644 --- a/11_getTheTitles/getTheTitles.js +++ b/11_getTheTitles/getTheTitles.js @@ -1,6 +1,6 @@ -const getTheTitles = function() { - -}; +const getTheTitles = function (books) { + return books.map(({title}) => title) +} // Do not edit below this line -module.exports = getTheTitles; +module.exports = getTheTitles