//change in array itself without need to another one arr.map(el =>{ el.bar == 1 && el.baz--} ); // don't forget {} in arrow function