odin-default-js-exercises/11_getTheTitles/solution/getTheTitles-solution.js

6 lines
117 B
JavaScript
Raw Permalink Normal View History

2022-02-20 19:07:44 +00:00
const getTheTitles = function (array) {
2023-01-21 17:53:41 +00:00
return array.map((book) => book.title);
2022-02-20 19:07:44 +00:00
};
module.exports = getTheTitles;