log
Logs the current data to the console at the point it appears in .flow(). Useful for debugging.
Signature
ts
log(prefix?)Parameters
| Parameter | Type | Description |
|---|---|---|
prefix | string | Optional prefix to prepend to the log output |
Example
ts
.flow(
spread({ by: "category", dir: "x" }),
log("after spread"), // logs each group
derive(d => d)
)