Global

Methods


compose(funcs)

Composes single-argument functions from right to left. The rightmost function can take multiple arguments as it provides the signature for the resulting composite function.

Parameters:
Name Type Argument Description
funcs function <repeatable>

The functions to compose.

Returns:

A function obtained by composing the argument functions from right to left. For example, compose(f, g, h) is identical to doing (...args) => f(g(h(...args))).

Type
function