Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




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

Search: