log
Logs the current data to the console at the point it appears in .flow(). Useful for debugging.
Signature
ts
log(prefix?)Parameters
Debug pass-through: logs each row (optionally under prefix) and forwards it unchanged.
| Option | Type | Default | Description |
|---|---|---|---|
prefix | string | Console prefix string. |
Example
ts
.flow(
spread({ by: "category", dir: "x" }),
log("after spread"), // logs each group
derive(d => d)
)