Use hasOwnProperty method within for syntax