How to traversal table's member in lua?

Keywords´╝Ü lua

Question: 

I know how to traversal a map, array in Lua. I don't how to traversal a table with functions and members. How can I make these code look better?

curAttr={}
curAttr.attack = fightAttr["attack"]
curAttr.defense = fightAttr["defense"]
curAttr.armor = fightAttr["armor"]

Answers: