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

In many cases though, you only need a correctly-typed key in order to index into the object to get the value -- if you've already got the value, you're fine. And if you need to limit yourself to keys that are defined on the type you're using (rather than arbitrary keys which might exist on the object at runtime) then you need to check anyway.


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

Search: