forEach
The forEach function allows you to go through all the elements or records of an array or an object.
forEach

Collection : A collection of properties (object) must be sent, which will be iterated and applied a series of functions individually. To access the name of the property within the functions, you must refer to the function and the "key" property. To access the value of the property, you must refer to the function and enter the "item" property.
Mode : Se debe seleccionar el modo en que se ejecutaran las funciones a las propiedades iteradas.
default : default mode executes the functions at the same time on each of the iterated properties.
sync : sync mode executes the functions to the iterated properties one at a time, that is, the execution of a property does not start until it finishes with the one previously entered.
async : the async mode, like the default, executes the functions at the same time in each of the iterated properties.
Step by Step :
Error : It is executed when it does not receive a valid collection ( object ).
OutVars
Null
Iteration : It opens a window for us to declare the logic that will be applied to each iterated property.
Non iterable : Executed when input value is not iterable.
OutVars
Null
Done : It is executed when the logic declared within the "iteration" option is finished, it is applied to each of the iterated properties, it returns an object with values that are returned within "Iteration" in the "onComputeCallback" function, which is used to declare the end of logic. this object has the same number of positions as the number of properties that were iterated.
OutVars
Null
Collection Filter

collection : A collection of properties (object) must be sent, which will be iterated and applied a series of functions individually. To access the name of the property within the functions, you must refer to the function and the "key" property. To access the value of the property, you must refer to the function and enter the "item" property.
Step by Step :
Non iterable : It is executed when it does not receive a valid collection (object).
OutVars
Null
Iteration :
Done : It is executed when the logic declared within the "iteration" option is finished executing. It applies to each of the iterated properties and returns an object with the property and its value, as long as a boolean value of "true" is placed within the "onComputeCallback" function in the "Iteration" to declare the end of the logic. This object does not have the same number of properties as the initial count, as it only returns those that meet this condition.
OutVars
Null
Last updated
Was this helpful?