Select the particular keys from object

PHOTO EMBED

Wed Jul 20 2022 08:52:22 GMT+0000 (UTC)

Saved by @Harsh_S ##javascript ##array ##object

const newOne = array.map(({name, age}) => ({name, age}))
content_copyCOPY

If I have a json data and I only want a 2 values from a group of arrays how do I do that for example let data = [ {name:hi,age:12,address:123}] and I only want name and age

https://discord.com/channels/102860784329052160/565213527673929729