mapContains (Function)
Signature: mapContains(map: Map<string, t0>, key: string) -> bool
Description: True iff key is present in map.
Parameters
- map (
Map<string, t0>): The map - key (
string): Key to find
Returns: bool
Example
print(mapContains({"a": 1}, "a")) // true
print (mapContains (["a" => 1], "a")) // true