UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

17 lines 413 B
//#region src/function/log.d.ts /** * `log(...args)` * * Logs the provided value along with optional arguments and returns the value unchanged. * * ```ts * log('debug:', 42); // logs "debug: 42", returns 42 * ``` * * ```ts * pipe(42, log("processing:"), (x) => x * 2); // logs "processing: 42", returns 84 * ``` */ declare function log(...args: any[]): <T>(value: T) => T; //#endregion export { log };