結果 : how to map through an array of objects in javascript