Update gettheTitle.js
This commit is contained in:
parent
888383a44e
commit
d1fac1eda6
|
@ -1,5 +1,5 @@
|
|||
const getTheTitles = function() {
|
||||
|
||||
const getTheTitles = function(array) {
|
||||
return array.map(book => book.title);
|
||||
}
|
||||
|
||||
module.exports = getTheTitles;
|
||||
|
|
Loading…
Reference in New Issue