Skip to content

logCount

logCount(value) → value · System

Log the count/length of a value to stderr and pass the value through unchanged. Useful for debugging pipelines.

  • value (required): array, string, or object to count
utlx
{
  items: logCount($input.orders)         // logs "count: 42" to stderr, passes array through
}

Released under AGPL-3.0.