A Pen by Dano Manion on CodePen.
Created
December 22, 2019 14:36
-
-
Save danomanion/3b88df631dc2bfc9bbfee73bb9da3353 to your computer and use it in GitHub Desktop.
JavaScript: 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 list = [{ name: "abc", age: "99"}, { name: "efg", age: "100"}, { name: "hij", age: "101"}] | |
const newList = list.map(x => x.name) | |
console.log(newList) | |
console.log(newList) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment