Update gettheTitle.js

This commit is contained in:
Mayar-Hassanin98 2020-07-25 17:01:23 +02:00 committed by GitHub
parent 888383a44e
commit d1fac1eda6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
const getTheTitles = function() {
const getTheTitles = function(array) {
return array.map(book => book.title);
}
module.exports = getTheTitles;