toObject
Description
Creates an object of the passed data.
Input / Parameter
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
{Dynamic} | {Based on user inputs.} | Any | - | - | No |
Note: Dynamic input means that user can generate the necessary input required and assign a value in it as well.
Output
Description | Output Type |
---|---|
Returns the created object with the passed data. | Object |
Callback
N/A
Video
Coming soon.
Example
The user wants to create an object data and view it in the console.
Step
Call the function
console
. Call the functiontoObject
inside thevalue
parameter of theconsole
function.Add a key. Key : name
Assign a value to the key. name : Lili
Result
Links
Last updated