Skip to content

GetByIndex

Retrieves an entity by its index.


GetByIndex<T = Entity>(index: number)T | null

  • indexnumber - The index of the entity to retrieve.

Returned:

  • T | null - The entity that matches the provided index. If no entity is found, null is returned.