Last active
December 15, 2020 15:05
-
-
Save samuelpath/e31d18f83e8db94ed76ceee3b94cc377 to your computer and use it in GitHub Desktop.
map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const jobs = [ | |
{ id: 1, isActive: true }, | |
{ id: 2, isActive: true }, | |
{ id: 3, isActive: false } | |
]; | |
// const idMultiplier = | |
const jobsWithIdsMultipliedByTen = jobs.map(idMultiplier); | |
/* | |
Voici le contenu attendu dans jobsWithIdsMultipliedByTen : | |
const jobsWithIdsMultipliedByTen = [ | |
{ id: 10, isActive: true }, | |
{ id: 20, isActive: true }, | |
{ id: 30, isActive: false } | |
]; | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment