flow es-toolkit
Creates a new function that executes multiple functions in sequence.
Usage
flow(...funcs)
Use flow when you want to chain functions together to create a pipeline. The result of the previous function becomes the input of the next function. This is useful for transforming data through multiple steps.
This is especially useful for creating data transformation pipelines.
Parameters
The functions to execute in sequence.
Returns
A new function that executes the given functions in sequence. The first function can accept multiple arguments, and the remaining functions receive the result of the previous function.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.