Amy Blankenship
Jun 24, 2022

--

Except they usually go off of just one property that's specific to the type. When that entire object is constructed on the front end, it's safe to assume that if it has that property it's of that type, but an incoming server response could have that property and nothing else you need (or a bunch of other stuff).

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

No responses yet