結果 : how to loop over an array of objects in javascript