From efd82eeec7e72b27275c92181672e57cdc008d19 Mon Sep 17 00:00:00 2001 From: marleyrae Date: Mon, 19 Jun 2023 17:23:59 -0700 Subject: [PATCH] Make 11 tests pass --- 11_getTheTitles/getTheTitles.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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