Data / Map
data/map_remove
Map Remove
Removes a key-value pair from a Map.
Note: No error is thrown if the key does not exist — removed will simply be null.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
map |
any | The Map to modify. | |
key |
string | ✓ | The key to remove. |
Outputs
| Name | Type | Description |
|---|---|---|
map |
any | The Map after removal (same reference). |
removed |
any | The value that was removed (null if the key was absent). |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
key |
string | "" |
Key (fallback) |