commit
967481f54e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue