Inside the for loop you should be checking whether :

  typeof obj_1[pro] === 'function'

not whether:

  typeof pro === 'function'

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to