8000 Add Solution Using Map · TezzGit/javascript-exercises@af70c25 · GitHub
[go: up one dir, main page]

Skip to content

Commit af70c25

Browse files
committed
Add Solution Using Map
1 parent 49de85e commit af70c25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

11_getTheTitles/getTheTitles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const getTheTitles = function() {
2-
1+
const getTheTitles = function (books) {
2+
return books.map(book => book.title)
33
};
44 3D4D

55
// Do not edit below this line

0 commit comments

Comments
 (0)
0