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