結果 : how to loop through array of objects in javascript