Last active
October 22, 2017 22:25
-
-
Save viniciusdacal/fd06577979ef0b6995beb24d98587b53 to your computer and use it in GitHub Desktop.
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 users = [ | |
{ name: "Rick", age: 60 }, | |
{ name: "Morty", age: 14 }, | |
{ name: "John Doe", age: 30 } | |
]; | |
const names = users.map(user => user.name); | |
// [ 'Rick', 'Morty', 'John Doe' ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment