flowRight es-toolkit
Creates a new function that executes the given functions in sequence from right to left.
Usage
flowRight(...funcs)
Use flowRight when you want to create a new function that executes multiple functions from right to left in sequence. The return value of the previous function is passed as a parameter to the next function.
This is useful for creating data transformation pipelines by composing functions in reverse order. It executes functions in the opposite direction to flow.
The this context is also passed to the functions.
Parameters
The functions to compose.
Returns
Returns a new function that executes the given functions from right to left in sequence.
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.