Map Without Entry | MAP_DELETE

Syntax

MAP_DELETE( [value], [key] )

Parameters

value
A MAP / OBJECT.

key
A TEXT. The key of the value to remove from the VALUE.

Return Value

An updated MAP / OBJECT with KEY removed.

Description

Remove a value in a MAP / OBJECT by key.

Examples

# VALUE is ["a" => 1, "b" => 2]
MAP_DELETE(VALUE, "a") # returns ["b" => 2]
# VALUE is ["a" => 1, "b" => 2]
MAP_DELETE(VALUE, "c") # returns ["a" => 1, "b" => 2]