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