Last active
December 9, 2020 01:57
-
-
Save juliobetta/dae5a4c98cdf880077992e7df8e9dd85 to your computer and use it in GitHub Desktop.
This file contains 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 mapped = characters.map(character => character.name); | |
const reduced = characters.reduce((accumulator, character) => [...accumulator, character.name], []); | |
// [ | |
// "Donkey Kong", | |
// "Captain Falcon", | |
// "Fox", | |
// "Kirby", | |
// "Link" | |
// ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment