UNPKG

the-observable-plugin-system

Version:
8 lines (5 loc) 199 B
import type { MonoTypeOperatorFunction } from "rxjs"; import { tap } from "rxjs"; export const log = <T>(prefix: string): MonoTypeOperatorFunction<T> => tap<T>((x: T) => console.log(prefix, x)) ;