結果 : update object in array of objects javascript