UNPKG

the-observable-plugin-system

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