結果 : how to update array of object in javascript