5 lines
119 B
JavaScript
5 lines
119 B
JavaScript
const getTheTitles = function (array) {
|
|
return array.map((book) => book.title);
|
|
};
|
|
|
|
module.exports = getTheTitles;
|