var obj = { fname:'zhao', lname:'yao', parents:{ father:'zhao' }, children:[ { dname:'zhaoyiyi' } ] } var hash={fname:'firstname',lname:'lastname',father:'fathername',dname:'dautername'} function map(obj) { var keys=Object.keys(obj); var hashKeys = O…