Lets say i have an array with objects like this;
let employees = [{Name: 'Misha', Age: 25}, {Name: 'Karing', Age: 26}, {Name: 'Stephan', Age: 24}]
And i need to find some item in this object and change it's value. In order to find value i can use filter
events.filter(e => (e.Age === 25));
Should it be like this ?
events.filter(e => (e.Age === 25)).Age= 26;
But have do modify this value then? Let say i found someone who is 25 and i need to increase age to 26 ?