Null or undefined effectively mean the same thing: nothing. This type
provides a semantic alias for null | undefined and is used throughout
folklore to represent empty or missing values.
Examples
Example 1
// Function that might return nothingfunctionfindUser(id: string): User|Nothing {
return users.get(id) ??null
}