HH\Map::retain

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

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

Parameters

  • mixed $callback

Returns

  • object