Class: DefChainApply

algeobra~DefChainApply(…args)

Apply a series of transformations This allows to process and convert any object into others by combining different steps A special case of the general function type. The type of CreateInfo that needs to be provided depends on the first function in the chain

Constructor

new DefChainApply(…args)

Parameters:
Name Type Attributes Description
args function | Object <repeatable>
The chain to be applied If an object in the chain is a function, it is directly applied, otherwise the compute field is used as is used in other definitions
Source:

Methods

compute(params) → {*}

Applies the chain
Parameters:
Name Type Description
params CreateInfo The creation info
Source:
Returns:
The final result of the chain
Type
*