結果 : how to get id from array of objects in javascript