結果 : update object in array by index javascript