- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
Meme transcription: Panel 1. Two images of JSON, one is the empty object, one is an object in which the key name
maps to the value null
. Caption: “Corporate needs you to find the difference between this picture and this picture”
Panel 2. The Java backend dev answers, “They’re the same picture.”
Update your typescript definitions to make the field
String|undefined|null
and use operators like?.
. It’s the only way to stay sane as a frontend developer.If you’re using Typescript yet, may God bless your soul (and you can still use all the nice nullability operators on most cases).