Is there a conventional method or developer in RxJS 6 library that can transform a function call into an observable, as shown below?
const liftFun = fun => {
try {
return of(fun())
} catch (err) {
return throwError(err)
}
}