📜  使用映射在数组对象中添加新键 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:24.150000             🧑  作者: Mango

代码示例2
const newArr = [
  {name: 'eve'},
  {name: 'john'},
  {name: 'jane'}
].map(v => ({...v, isActive: true}))