🌈 搜索
📅  最后修改于: 2022-03-11 15:02:22.555000             🧑  作者: Mango
var result = foo.map(el => el.bar == 1 ? {...el, baz: [11,22,33]} : el);