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