Skip to main content

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​

NameTypeRequired
keystring ✔
valueany ✔

Outputs​

NameType
createdobject

Examples​

Inputs Outputs
key value created
"name" "John" { name: "John" }
"age" 44 { age: 44 }
"info" { nick: "jon" } { info: { nick: "jon" } }