HH\Map::retainWithKey

Ensures that this Map contains only keys/values for which the specified callback returns true when passed the key and the value

public function retainWithKey(
  mixed $callback,
): HH\Map;

Parameters

  • mixed $callback

Returns

  • object