結果 : how to update existing array of objects in javascript