--[=[
	Flattens the observable to nil and the value

	@function flattenToValueAndNil
	@param source Observable<Brio<T> | T>
	@return T | nil
	@within RxBrioUtils
]=]

RxBrioUtils.flattenToValueAndNil = RxBrioUtils.emitOnDeath(nil)
