Skip to main content

get

Method of Map.

Overloads

NameDescription
get(const string key, const Object default_value) -> ObjectAccesses an element in the map by key. Return default if the key is not found.
get(const string key) -> ObjectAccesses an element in the map by key. Return null if the key is not found.

get(const string key, const Object default_value) -> Object

Accesses an element in the map by key. Return default if the key is not found.

Parameters

  • key: The key of the element to access.
  • default_value: The default value to return if the key is not found

get(const string key) -> Object

Accesses an element in the map by key. Return null if the key is not found.

Parameters

  • key: The key of the element to access.