Execute With Args
Module Info:
moduleType: "internal",
moduleName: "executeWithArgs"
Description
Takes in a function and its arguments, and then execute it.
Inputs
Name | Type | Required |
---|---|---|
module | function | ✔ |
arguments | cloudedObject | ✖ |
Outputs
Name | Type | Required |
---|---|---|
moduleOutput | any | ✖ |
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" } |