Skip to content

log

Logs the current data to the console at the point it appears in .flow(). Useful for debugging.

Signature

ts
log(label?)

Parameters

ParameterTypeDescription
labelstringOptional label to prefix the log output

Example

ts
.flow(
  spread("category", { dir: "x" }),
  log("after spread"),   // logs each group
  derive(d => d)
)