transposeResultToUndefinable
Transposes a Result
of an Undefinable<T>
into an Undefinable<T>
of a Result
.
Ok(T)
->Ok(T)
Ok(undefined)
->undefined
Err(E)
->Err(E)
Transposes a Result
of an Undefinable<T>
into an Undefinable<T>
of a Result
.
Ok(T)
-> Ok(T)
Ok(undefined)
-> undefined
Err(E)
-> Err(E)