HH\ImmMap::contains
Determines if the specified key is in the current ImmMap
public function contains(
mixed $key,
): bool;
This function is interchangeable with containsKey()
.
Guide
Parameters
mixed $key
Returns
bool
-true
if the specified key is present in the currentImmMap
;false
otherwise.
Examples
See [Map::contains
](</hack/reference/class/Map/contains/#examples>) for usage examples.