結果 : update each element of array javascript