Merge pull request #14 from BillalPatel/get-the-titles

Working answer
This commit is contained in:
Billal Patel 2019-11-08 17:08:55 +00:00 committed by GitHub
commit 967481f54e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,11 @@
const getTheTitles = function() { const getTheTitles = function(books) {
let bookTitles = [];
books.forEach((book) => {
bookTitles.push(book.title);
})
return bookTitles;
} }
module.exports = getTheTitles; module.exports = getTheTitles;