結果 : update every element in array javascript