HH\Shapes::keyExists

Check if a field in shape exists

public static function keyExists(
  HH\darray $shape,
  arraykey $index,
): bool;

Similar to array_key_exists, but for shapes.

Parameters

  • HH\darray $shape
  • arraykey $index