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).