Hacker News new | past | comments | ask | show | jobs | submit login

or you can check first with .hasOwnProperty() or with the in operator



if the client supports .hasOwnProperty() or the 'in' operator ...

(it's just a few years that these were not common, and there are still clients around that don't support it)


Got any examples of these browsers? IIRC i used hasOwnProperty as far back as IE6.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: