Post

This, except I tend to use use hasOwnProperty rather than in. Feels like I usually care about immediate properties in type guards, not inherited ones.

I offered it mostly as a stylistic alternative that, to me, feels more explicit. Not meant as a prescription.

0 reposts0 likes

No replies yet.