結果 : how to update array of objects in javascript