DEV Community

loading...

Discussion on: Decoding JSON with Typescript

Collapse
hmendezm profile image
H. Mendez

Hi Joan, sorry for bothering you. U have a case when the property in the class can be a number or null. How I can set a default value when it is null?

Best
Hmendezm