JSFiddle - React, Tailwind, and code Playground
HTML
<button id='test'>Issue</button>
JavaScript
$('test').addEvent('click', ( function(){
var test = [
{ 'count' : 1 , 'average' : 2 , 'total' : 3 } ,
{ 'count' : 10 , 'average' : 20 , 'total' : 30 } ,
{ 'count' : 100 , 'average' : 200 , 'total' : 300 }
] ;
console.log( test ) ;
test.forEach( function( element , service_index , array ){
array[ service_index ].count = 1111111 ;
array[ service_index ].average = 2222222 ;
array[ service_index ].total = 3333333 ;
});
console.log( test ) ;
}));