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

6 lines
119 B
JavaScript
Raw Normal View History

2022-02-20 11:07:44 -08:00
const getTheTitles = function (array) {
return array.map((book) => book.title);
};
module.exports = getTheTitles;