Creates a handler chain from an array of handlers.
Use it like this:
const handlerChain = createHandlerChain(handler1, handler2, handler3); Copy
const handlerChain = createHandlerChain(handler1, handler2, handler3);
or like this:
const handlers = [handler1, handler2, handler3];const handlerChain = createHandlerChain(handlers); Copy
const handlers = [handler1, handler2, handler3];const handlerChain = createHandlerChain(handlers);
The function signature of all the handlers must be the same.
Array of handler functions to be chained
A single handler function that executes all handlers in sequence
Creates a handler chain from an array of handlers.
Use it like this:
or like this:
The function signature of all the handlers must be the same.