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