remove
Description
Removes a value from an object using a key.
Input / Parameter
data
The reference object to be updated.
Object
-
-
Yes
attribute
The key of the value to be removed from the object.
Text
-
-
Yes
Output
Returns the updated object.
Object
Example
In this example, we will remove a key from an object and print the updated object in the console.
Step
Drag a
buttoncomponent into the canvas and open theActiontab. Select thepressevent of the button and drag theLog.writefunction to the event flow.Call the function
Object.removeinside theLog.writefunction.Then call the function
Conversion.toObjectinside thedataparameter of theObject.removefunction.Sample parameters are shown in the picture below.

Result
The console will print the updated object.
For this example, the printed value will be
{name: 'John'}.
Links
Related Information
See also:
Functions
Last updated