Absence is accepted under either marker: undefined and null pass without consulting the guard, while every other
value must satisfy it. Suited to data crossing a boundary that reports absence under either convention, where the
choice of marker carries no meaning.
Checks if a value is Nullable.
Absence is accepted under either marker:
undefinedandnullpass without consulting the guard, while every other value must satisfy it. Suited to data crossing a boundary that reports absence under either convention, where the choice of marker carries no meaning.