結果 : how to use foreach in array of objects javascript