const data = [ { foo: 1, bar: 2 }, { foo: 2, bar: 3 }, { foo: 3, bar: 4 }, ]; const increment = a => a + 1; const result = data.map(o => ({ ...o, foo: increment(o.foo) })); console.log(result); Run code snippet