Skip to main content

Execute With Args

Module Info:

moduleType: "internal",
moduleName: "executeWithArgs"

Description

Takes in a function and its arguments, and then execute it.

Inputs

NameTypeRequired
modulefunction
argumentscloudedObject

Outputs

NameTypeRequired
moduleOutputany

moduleOutput is the exact output of the executed function.

Examples

Inputs Outputs
module arguments moduleOutput
[add] { numbersToAdd: [1, 2, 6] } { result: 9 }
[add] { numbersToAdd: [1, 2, "foo"] } { errorMessage: "One of the arguments provided was not a number" }