Amy Blankenship
Aug 28, 2022

Except when, like in your example, it's coming from an API. you could get "1" back from the API and Typsecript won't know anything about it or alert you to a problem.

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

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

Responses (1)