has method

bool has(
  1. Entity entity
)

Checks if the entity has this type of component.

Implementation

bool has(Entity entity) => this[entity] != null;