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 current ImmMap; false otherwise.

Examples

See Map::contains for usage examples.