function valueOrDefault(value, defaultValue) {
    return typeof value === 'undefined' ? defaultValue : value;
}
Returns `value` if defined, else returns `defaultValue`.
@param value - The value to return if defined.
@param defaultValue - The value to return if `value` is undefined.