Software Architect / Team Lead
- Kansas City, MO
-
20:24
(UTC -05:00) - http://www.mattburkedev.com
- @mattburkedev
- @matt@social.mattburkedev.com
- in/akatakritos
Highlights
- Pro
Block or Report
Block or report akatakritos
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
-
-
rxjs debug operator
rxjs debug operator 1export function debug<T>(label: string) {
2return tap<T>(
3next => console.log(`[${label}]`, next),
4err => console.error(`[${label} -- ERR]`, err),
5() => console.log(`[${label}]`, 'complete')
-
-
rxjs error handling
rxjs error handling 1/**
2* rxjs operator to convert a observable to an obserable of Results
3*/
4export function wrapResult<T>(): UnaryFunction<Observable<T>, Observable<Result<T, Error>>> {
5return pipe(
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.