結果 : how to traverse an array of objects in javascript