Create
Module Info:
moduleType: "internal",
moduleName: "createObject"
Description
The createObject function receives a key (string) and a value. Then returns an object with a property key which contains the given value.
Inputs
| Name | Type | Required |
|---|---|---|
key | string | ✔ |
value | any | ✔ |
Outputs
| Name | Type |
|---|---|
created | object |
Examples
| Inputs | Outputs | |
|---|---|---|
| key | value | created |
"name" | "John" | { name: "John" } |
"age" | 44 | { age: 44 } |
"info" | { nick: "jon" } | { info: { nick: "jon" } } |