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