Sets a default value if the provided value is null or undefined.
Value to check
Default value to set
Either the provided value or the default value
Sets a default value if the provided value is null or undefined.