I recently had an issue regarding a ternary checking a number | undefined var for undefined, but due to my lack of attention when writing the code,
number | undefined
undefined