log
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