Returns the provided value if it's not null or undefined; otherwise, returns the default value.
The type of the value and default value.
The value to check.
The default value to return if the provided value is null or undefined.
The provided value if it's not null or undefined; otherwise, the default value.
Returns the provided value if it's not null or undefined; otherwise, returns the default value.